Click here to Skip to main content
15,063,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to make Blue Filled (with True state) and Gray Filled(false state) Filled Rounded Toggle or Switch or Checkbox Button with icon inside. can see most of the devices with dropdown notification panel have wifi, bluetooth, torch etc.
Any Library or Git Solution please.

Sample of the Button is Below.
https://techcult.com/wp-content/uploads/2020/05/List-of-Android-Icons-538x1024.jpg.webp[^]

What I have tried:

<ToggleButton
android:id="@+id/check1"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="@drawable/toggle_bg"
android:textOff=""
android:textOn="" />
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900