Thursday, October 7, 2010

Re: [android-developers] Re: Getting a RadioGroup to redraw with correct button checked

On Thu, Oct 7, 2010 at 2:59 PM, Bret Foreman <bret.foreman@gmail.com> wrote:
> The length of dataList can change so re-using the buttons is
> problematic. Is there a way to get Android to completely remove the
> RadioGroup rather than just re-fetch the same object when I call
> findViewById? I want to cause a new RadioGroup object to re-created
> like it would be in onCreate.

Call removeView() on its parent, passing the RadioGroup as the parameter.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

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