for android wrote: > Hey i have got a similar prb,but i dont exactly understand what u > mean by "* When your button > > clicks, get the ViewHolder from the button's parent, get the position > out of the ViewHolder, and use that position."
I though it was fairly self-explanatory: -- Add an OnClickListener to your Button -- In the OnClickListener, call getParent() on the Button to get the LinearLayout that contains it -- Then call getTag() on the LinearLayout and cast it to be the ViewHolder -- Then get the position out of the ViewHolder -- Then use that position -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---