Top "Android-switch" questions

Switch is an android class for a two state toggle switch

Switch button, disable change state onClick

I want to use a switch button but I want to disable the change status on click, let this change …

android android-widget android-switch
Switch button does not show ON and OFF text in Android

I am creating a switch button programmatically. The problem I have is that the button does not show the ON / …

android android-layout android-switch
Android Custom Switch

I'm trying to make a custom switch like this: with these properites: text on both sides always shown. different colors …

android android-switch
Styling / coloring the SwitchCompat button in Android Lollipop for Material Design

I have been trying to find resources explaining how I can style the Switch button in the Material Design theme. …

android android-5.0-lollipop material-design android-switch
Switch Track Color

I want to use a Switch and change its Track Color. So in my opinion nothing spectacular. My Switch layout: &…

android colors widget android-switch
Android switches - making thumb height larger than track height, how?

Is there any way to make the height of the thumb of a switch bigger than the track height in …

android android-switch
Change Switch state without animation

In my Android project, I have a ListView with rows containing SwitchCompat items (AppCompat for Switch widget). My problem occurs …

android android-listview android-switch
Switch-Button thumb gets skewed?

The thumb for my Switch-button seems to get skewed(for on&off state). There were similar problems on github, …

android xml android-switch
Switch in adapter for a ListView

I have a ListView with an adapter which layout has a Switch, so every item in the lists has a …

android listview android-adapter android-switch
Unable to change switch color

I'm looking for applying this color to all switches only. But by default, it is taking colorAccent instead of this …

android android-styles android-switch