Is there a Switch widget that comes with Android 4.0 and above in the ActionBarSherlock packages. I see ABS has a 4.0 compatible Spinner View, but no Switch. Does Jake intend to include this in any near release?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, the
Switchcomponent is not part of the action bar and hence will never be part of ActionBarSherlock. TheSpinnerthat is included is a subset of the full version which only has the necessary features required to work inside the action bar.If you need a components like this on all versions of Android I suggest you backport it yourself. Just grab the source, styles, and drawables and fix up any usage of new APIs to use old or compatible method calls.