Friday, August 10, 2012

Re: [android-developers] How to dynamically change row layout of list view on click event

To do something like that you are going to have to write a custom adapter...  When the listview item is clicked you then set the clicked status on the adapter for the clicked item, call notifyDataSetChanged() and let the getView() method handle the change...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Aug 9, 2012 at 1:46 AM, Jovish P <android.fryo@gmail.com> wrote:
We are using list view in our app with one simple row layout.
But on click of list view we want to change the row layout of
tht particular item . is it possible to do ? wht is the best approach ?
Ho to add listeners to view inside the row layout?

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate