1

Is it possible to insert a switch inside a button? Like for example in the standard alarm app on Samsung smartphones.

feridok
  • 648
  • 7
  • 26
Halk
  • 21
  • 2
  • 1
    found 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
  • 1
    Samsung 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

0 Answers0