Questions tagged [android-togglebutton]

A toggle button allows the user to change a setting between two states.

A toggle button allows the user to change a setting between two states. It displays checked/unchecked states as a button with a "light" indicator and by default accompanied with the text "ON" or "OFF".

For more information, see the Toggle Buttons guide.

199 questions
-2
votes
2 answers

How to make my ActionBar Toggle button to work in my Application?

This the piece of code i have been written for Toggle button in MainActivity mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.humberg, //nav menu toggle icon R.string.app_name, // nav drawer…
-3
votes
1 answer

Toggle button values on and off status should be store to databse

I am working with app that will have toggle button and I want to store on and off values in Database without using Edit Text can u tell me the process for this.
-3
votes
1 answer

How can I use Shared Preferences to save ToggleButton/Switch status?

I've already implemented Firebase push notifications to my app successfully, but now I want the ToggleButton/Switch to store the user selection, I mean, when the user activate the switch I want that status to be stored, because when the user closes…
-4
votes
2 answers

Toast selected toggle buttons

I have 7 ToggleButtons created and one button. Each named Monday, Tuesday, ... Sunday. When I select ("Switch ON") for example Monday and Thursday, I want to touch a button and display "you have selected Monday and Thursday". Any ideas how do it on…
1 2 3
13
14