About 6,980 results
Open links in new tab
  1. android.widget.Switch - on/off event listener? - Stack Overflow

    I would like to implement a switch button, android.widget.Switch (available from API v.14).

  2. Android How do I correctly get the value from a Switch?

    Dec 21, 2018 · I'm creating a Android application which uses a Switch. I'm trying to listen for changes and get the value when changed. I have two questions when using switches: What …

  3. How to get switch value in Android? - Stack Overflow

    Oct 31, 2014 · Switch s = (Switch) findViewById(R.id.switch1); it says findViewById is undefined for the type SecondActivity. The problem is Android doesn't allow me to get the value of switch …

  4. Can't get Android DatePickerDialog to switch to Spinner mode

    Can't get Android DatePickerDialog to switch to Spinner mode Asked 8 years, 6 months ago Modified 5 years, 1 month ago Viewed 16k times

  5. Using Switch Statement to Handle Button Clicks - Stack Overflow

    Then somehow use the ID of the button clicked in my switch statement, But everything I find online seems to use SEPARATE listeners for every button and then somehow use the View as …

  6. Android Get switch from ActionLayout on Navigation Drawer

    Nov 13, 2016 · How do I specifically get the switch from my actionLayout (that is a menu item) so I can set the 'setOnCheckedChangeListener' event? Here is my menu for the navigation …

  7. Shortcut to switch between design and text in Android Studio

    May 20, 2020 · 130 Does anyone know some shortcut to switch between design and text in android studio while editing XML layout? While I can switch from design view to source using …

  8. How to change Switch text to right side in android?

    Sep 26, 2013 · Android default Switch have text and then Switch on/off. I'm Expecting Switch on/off and then text. Don't use another widgets like TextView. How can i set Switch right side text.

  9. Change Android Switch State - Stack Overflow

    Sep 20, 2014 · The method of the Switch works totally fine but you're calling it inside the method which is unnecessary. So in order to set the to the latest value you should load the …

  10. How to change the size of a Switch Widget - Stack Overflow

    Apr 16, 2012 · In Ice Cream Sandwich a Switch Widget was introduced that displays an On Off Slider. I added the Switch like this: <Switch android:layout_width="fill_parent" …