Monday, January 3, 2011

Re: [android-developers] How to add button to a listview

WHAT

On Wed, Dec 22, 2010 at 1:52 AM, sujit panda <sujit.android@gmail.com> wrote:
Hi,
   you have to create a custom ArrayAdapter class which will override the getView() method and  using this you can pass a XML file to the list and you can put whatever you want in side list. follow this blog by me 


Thanks
 

On Wed, Dec 22, 2010 at 2:43 PM, pramod.deore <deore.pramod83@gmail.com> wrote:
I have one activity which is extends from ListActivity. Here I am
displaying list of strings . I don't have .xml file I am showing list
using ArrayAdapter. Now what I want is to add 2 buttons to this list.
because I don't have xml file I am confused how to add buttons. Please
help me. Thanks in advance.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment