Search code examples
androidwidgetandroid-3.0-honeycombandroid-switch

Is it possible to use Switch widget in Android honeycomb 3.x?


It always give me the following exception in runtime:

android.view.InflateException: Binary XML file exception line #291: Error inflating class android.widget.Switch

However, I added the latest Android Support Library to my project but it did not contain the Switch widget feature. I think Google did not add it yet to the Support Library.


Solution

  • You can not use switch < 4.0

    But however these are custom projects of switch you can use...

    Pre Android Switch and android-switch-backport