[android-developers] Re: How to do ListView dynamic item growing?
Thanks @Guru OnScrollListner is a better choice. On 10月13日, 下午11时43分, Mark Murphy mmur...@commonsware.com wrote: wangxueming wrote: Now I want to make a ListView,with 20 items, Then when it scroll to the end, I get new data and add to the end of ListView dynamic. Just Like ListView in Android Market. You can try my EndlessAdapter for that: http://github.com/commonsguy/cwac-endless -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Looking for Android opportunities?http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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] How to do ListView dynamic item growing?
Now I want to make a ListView,with 20 items, Then when it scroll to the end, I get new data and add to the end of ListView dynamic. Just Like ListView in Android Market. Thanks! --~--~-~--~~~---~--~~ 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: How to listen to Back key
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { //do what you want return true; } return super.onKeyDown(keyCode, event); } On Aug 28, 12:24 am, cindy ypu01...@yahoo.com wrote: In current activity, when user click the back key, I don't what it back to the last activity. Can I add a listener to listen to back key in current activity? When user click back key, it actually back to the activity I want it to go. Thanks! Cindy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---