Articles → ANDROID → Toggle Button In Android

Toggle Button In Android






Purpose





Example




<ToggleButton   
    android:id="@+id/mytogglebutton"   
    android:layout_width="wrap_content"   
    android:layout_height="wrap_content"   
    tools:ignore="MissingConstraints" />


Picture showing the toggle button code in android studio
Click to Enlarge


Output


Picture showing the output of Toggle button in android
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Monday, November 1, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250