[android-developers] Re: Have ListView and other widgets scroll as a whole
Hey, This worked for you? I have a layout like this.. ... But i cant scroll when my listview reaches the bottom of the screen. And there are other widgets like button beneath it.. Is it good to implement this MergeAdapter for that? Thanx, Wouter On 26 jul, 13:27, MarcoAndroid wrote: > @mark murphy > > Awesome, just ran the demo of the MergeAdapter, looks like that's what > I've been looking for! The code that implements it looks relatively > simple; the fact I couldn't come up with it means I don't know all the > ins & outs yet of the Android platform :) > > I'll now try to add it to my search app, the ultimate test to see if > it fits my needs. > > Thanks already for sharing this! Also saw that there are more > utilities available through the cw-android group. > > Regards, > Marco > > On 24 jul, 19:20, Mark Murphy wrote: > > > MarcoAndroid wrote: > > > So my question: has anybody implemented this in some way? > > > Yes. > > > You should be able to use my recently-released MergeAdapter: > > >https://github.com/commonsguy/cwac-merge/tree > > > You would hand the MergeAdapter your initial set of ordinary views, plus > > an empty Adapter of some form for your search results. When your search > > is complete, populate your formerly-empty adapter with the results, and > > they should show up. > > > If that doesn't work, it's a scenario I need to support myself within > > the next couple of weeks, so we should be able to get it going for you > > one way or another. > > > I'll be adding more documentation about it in the coming weeks, both in > > the README and in a blog post on AndroidGuys. > > > Questions about it should go to the cw-android Google Group: > > >http://groups.google.com/group/cw-android > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Have ListView and other widgets scroll as a whole
Hey Wouter, It did not work 100% for me, my inputboxes loose focus when the virtual keyboard pops up. See my question + answer here: http://groups.google.com/group/android-developers/browse_thread/thread/4883b7021b1a7724 For you it definitely could work, you have a different setup. It's quite easy to try it out. The demo that comes with the adapter has 2 adapters & 1 button added to the mergeadapter, so it could work. Also maybe useful is this post: http://osdir.com/ml/AndroidBeginners/2009-02/msg00585.html (couldn't find the original post anymore) At the moment I'm now putting my inputboxes + searchbutton in the ListView header. It also got some focus problems (sometimes the whole header gets focus (becomes orange or green), tried to set focusable to false but that didn't do it (yet). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Have ListView and other widgets scroll as a whole
MarcoAndroid wrote: > So my question: has anybody implemented this in some way? Yes. You should be able to use my recently-released MergeAdapter: https://github.com/commonsguy/cwac-merge/tree You would hand the MergeAdapter your initial set of ordinary views, plus an empty Adapter of some form for your search results. When your search is complete, populate your formerly-empty adapter with the results, and they should show up. If that doesn't work, it's a scenario I need to support myself within the next couple of weeks, so we should be able to get it going for you one way or another. I'll be adding more documentation about it in the coming weeks, both in the README and in a blog post on AndroidGuys. Questions about it should go to the cw-android Google Group: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Have ListView and other widgets scroll as a whole
@mark murphy Awesome, just ran the demo of the MergeAdapter, looks like that's what I've been looking for! The code that implements it looks relatively simple; the fact I couldn't come up with it means I don't know all the ins & outs yet of the Android platform :) I'll now try to add it to my search app, the ultimate test to see if it fits my needs. Thanks already for sharing this! Also saw that there are more utilities available through the cw-android group. Regards, Marco On 24 jul, 19:20, Mark Murphy wrote: > MarcoAndroid wrote: > > So my question: has anybody implemented this in some way? > > Yes. > > You should be able to use my recently-released MergeAdapter: > > https://github.com/commonsguy/cwac-merge/tree > > You would hand the MergeAdapter your initial set of ordinary views, plus > an empty Adapter of some form for your search results. When your search > is complete, populate your formerly-empty adapter with the results, and > they should show up. > > If that doesn't work, it's a scenario I need to support myself within > the next couple of weeks, so we should be able to get it going for you > one way or another. > > I'll be adding more documentation about it in the coming weeks, both in > the README and in a blog post on AndroidGuys. > > Questions about it should go to the cw-android Google Group: > > http://groups.google.com/group/cw-android > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---