Wednesday, March 27, 2013

[android-developers] Starting with Andriod 4.2.2, Checkbox controls do not render correctly


I have custom checkbox controls that use a custom theme defined in an XML file. Basically says "use this image for check on, and this image for check off". That's how you template controls.

Anyway, starting in API 17, Android 4.2.2, my checkbox text is all screwed up. I have text padding of 50dp for the text on the checkbox, because in prior versions of Android (prior to 17), if you didn't pad the text,
it would show "underneath" your custom check image.

Now, on Android 4.2.2, even if I remove the padding, the checkboxes STILL look wrong, they look elongated. Take a look at this image, it explains

http://i.imgur.com/oqcmdFp.png


So how do I fix this...other than creating a special layout now just for Android 17 *blech*


-niko

--
--
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate