Top "Android-switch" questions

Switch is an android class for a two state toggle switch

How to custom switch button?

I am looking to Custom The Switch Button to becoming as following : How to achieve this ?

android android-button android-styles android-switch
How can I style an Android Switch?

The switch widget introduced in API 14 is styled by default with holo theme. I want to style it slightly different, …

android android-theme styling android-styles android-switch
How to change the size of a Switch Widget

In Ice Cream Sandwich a Switch Widget was introduced that displays an On Off Slider. I added the Switch like …

android android-switch
Android - programmatically change the state of a switch without triggering OnCheckChanged listener

I'm looking for a method of programmatically changing the state of an Android Switch widget using switch.setChecked(true); without …

java android onclicklistener oncheckedchanged android-switch
Handle touch event for items inside Recyclerview - android

i'm building a simple recyclerview with custom layout (Text view and switch) and a custom adapter. My problem is i …

android android-recyclerview touch-event android-switch
Android Switch widget textOn and textOff not working in Lollipop

The behavior of the switch widget changed in Lollipop (5.0). <Switch android:id="@+id/switcher" android:layout_width="wrap_content" …

android android-5.0-lollipop android-switch
How to have a Lollipop switch button

I want to have the Lollipop style switch button for my app: How could I implement this button so it …

android android-5.0-lollipop android-switch
onCheckedChanged called automatically

I have a switch in a recyclerview and data is displayed in the recyclerview after retrieving data from DB. When …

android android-recyclerview oncheckedchanged android-switch switchcompat
How to use data binding for Switch onCheckedChageListener event?

As question indicates, how to bind checked change listener to Switch button in xml ? I am not using recycler view. …

android data-binding android-switch
Android : Required API to use Switch?

I can't insert a Switch in my project because of the following error : View requires API level 14 (current min is 8): …

android api android-switch