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.
You can not use switch < 4.0
But however these are custom projects of switch you can use...