Is it possible to insert a switch inside a button? Like for example in the standard alarm app on Samsung smartphones.
Asked
Active
Viewed 109 times
1
-
1found a possible solution, just made a clickable LinearLayout [link to solution](https://stackoverflow.com/questions/5546514/making-a-linearlayout-act-like-an-button) – Halk Dec 28 '19 at 05:19
-
Why do you want to do that? – feridok Dec 28 '19 at 10:43
-
1Samsung uses a clickable LinearLayout, and there is a button inside that layout. Buttons cant have children. – feridok Dec 28 '19 at 10:44
-
I want to have a function similar to the standard Samsung alarm app. Thanks, i already linked a detailied answer for how to implement a clickable LinearLayout. – Halk Dec 29 '19 at 15:56