On Sat, Feb 5, 2011 at 11:21 PM, javaxmlsoapdev <vika...@gmail.com> wrote: > 1)how can I display a button at the bottom of the screen (not at the > end of the list). I understand since I extend ListActivity can't use > setContentView(R.layout.main) where main.xml could have a button but > can't really mix it with custom layout.
You can use setContentView() with ListActivity. The rules for doing so are in the ListActivity documentation. > 2)Need to display "Done" button only when at least one item is checked > in the list. This is exactly same as how Gmail app on Android works. > when you check an item it displays "Archive Delete Labels" buttons. > and if none item is checked there shouldn't be a button on the > screen. That appears to be accomplished via an animation. The button panel is GONE, then made VISIBLE and animated into position. You can see a similar effect here: https://github.com/commonsguy/cw-advandroid/tree/master/Animation/SlidingPanel -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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