I am trying to use a Switch (toggle) in android 4.0 API.
If I use my customized theme for the activity there is an error showing
null pointer exception.
switchStyle not found.
How can I use default android switch in custom theme?
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.
your custom theme must have a parent theme of one of the default themes: Holo / HoloLight / HoloLightDarkActionBar
That way, anything that you don’t manually define will be picked from the default.