On Wed, Apr 18, 2012 at 8:24 AM, Rainer <[email protected]> wrote: > I am confused by the various options of where checkboxes and radio buttons > appear. > > Android default widgets will show radio and checkboxes on the left, however > on a PreferenceActivity checkboxes and radio buttons will be on the RIGHT. > Also Google Music shows a checkbox in the options menu on the RIGHT. > > Making native android CheckBox appear on the right is not as straight > forward as it should be. In short, I am super confused. There doesn't seem > to be a consistent guideline of what the correct placement should be and in > googles apps (gmail => left, settings => right, google music popup => right) > its inconsistent as well. > > please help
You are welcome to place checkboxes wherever you like. There are no strict rules on this. By default, CheckBox will have the actual "box" on the left, and CheckedTextView will have the actual "box" on the right -- CheckedTextView is typically used for checkable lists in a ListView. However, you are welcome to have an empty caption on a CheckBox and place it wherever you want, or even roll your own CompoundButton that has no caption. So long as it is obvious to your users what the checkbox corresponds to, its precise placement does not matter a lot. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

