On Sun, Dec 2, 2012 at 8:07 PM, dashman <[email protected]> wrote: > i've got an android app and would like to keep compatiblity back to android > 1.6 > > but would like to take advantage of new android UI - e.g. checkboxes etc. > > right now i have > > <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="11"/> > > but i'd like new style checkboxes to be displayed if running under android 3 > or later. > > how could i do that.
If you are using the stock themes, your <uses-sdk> element already shows "new style checkboxes". If you created your own custom theme, you will need to create a second version of it, in res/values-v11/, that inherits from a Holo theme (e.g., Theme.Holo). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- 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

