android switch button example

Publicado el: 25 marzo 2018
en el canal de: bostam win
3,641
32

android bangla tutorial switch Android Switch Button Tutorial android switch control switch button in android example android switch button Android switch
Android switch button
Switch (On/Off) Tutorial For Example In Android Studio
In Android, Switch is a two-state toggle switch widget that can select between two options. It is used to display checked and unchecked state of a button providing slider control to the user. The switch is a subclass of CompoundButton. It is basically an off/on button which indicates the current state of Switch. It is commonly used in selecting on/off in Sound, Bluetooth, WiFi etc

textOn And testOff:

textOn attribute is used to set the text when Switch is in the checked state (i.e. on state). We can set the textOn in XML as well as in the java class.
In the below example we set the textOn as “Yes” and text of as “No” for a Switch.


En esta página del sitio puede ver el video en línea android switch button example de Duración hora minuto segunda en buena calidad , que subió el usuario bostam win 25 marzo 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,641 veces y le gustó 32 a los espectadores. Disfruta viendo!