In the settings page of my app, I am allowing users to turn on or off certain features. I am doing that by using a list view containing a title and switch toggle in each row.
When in list view, Lollipop uses a different switch design, and when you turn it to off mode, the bar is completely invisible, all you see is a circle. Example is here http://postimg.org/image/veos5f3o7/7993cb90/, top switch is On, bottom is off.
I would like to know how I can make the bar visible (e.g. similar to Android OS settings), so you can tell that it is a Switch when in off mode. Thanks
My switch layout declaration is
<Switch
android:id="@+id/setting_swtich"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" />