<item name="checkboxStyle">@android:style/Widget.Holo.CompoundButton.CheckBox</item>
Looking in the SDK folder, under "platforms/android-X/data" might be useful, especially styles.xml, themes.xml and attrs.xml under "values".
-- K
2012/9/6 Felipe Caldas <caldas@gmail.com>
Hi everyone,
I am trying to create a global style for my checkboxes in my app. I already have the two images needed and already created the selector XML to select between them.In my styles.xml I have:<style name="MyTheme" parent="android:Theme.Light"><item name="android:buttonStyle">@style/ButtonText</item><item name="android:windowNoTitle">true</item><item name="android:windowBackground">@drawable/background</item></style>Is there any parameter that I can set in MyTheme to globally set the drawable selector for all CheckBoxes in the app? For example, something like this:<style name="MyTheme" parent="android:Theme.Light"><item name="android:buttonStyle">@style/ButtonText</item><item name="android:windowNoTitle">true</item><item name="android:windowBackground">@drawable/background</item><item name="android:checkBoxBackground">@drawable/mycheckbox_background</item>
</style>Many thanks,--
Felipe
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 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
No comments:
Post a Comment