RadioButtons must be direct children of RadioGroup at the moment.

On Wed, Apr 30, 2008 at 6:07 PM, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> 6real wrote:
>> Actually I try to create a custom background with
>> -> alternate colors (even and odd)
>> -> rounded rectangle shaped
>>
>> I try to extend RadioButton directly but the result was not what I
>> expected (the text and button was kind of "greyed" or set with a high
>> transparency ...)
>>
>> I think there is maybe a solution with a shape definition in XML files
>> but I can't find any documentation.
>
> I don't have any suggestions off the top of my head, other than to file
> your "Radiogroup<LinearLayout<RadioButton" issue as a bug or feature
> request. Ideally, RadioGroup searches its whole tree for RadioButtons to
> belong to the group, not just immediate children, which is what I'm
> guessing is happening here.
>
> You could also roll your own radio group logic for the short term.
> Basically, your OnCheckedChangeListener for each button is responsible
> for communicating back to your own non-widget group object, which in
> turn is responsible for updating the other buttons, and not getting into
> an infinite loop in the process. Not the most elegant approach, but it
> may get you by for a while.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> The Busy Coder's Guide to Android Development -- coming in June 2008!
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to