Is it possible to use a Dialogtitle-button with switchcase or something else to turn on/off the visibility of a framelayout?
Or should I use any other method? I just want to use that button as a switch, when press it makes the framelayout visible and once again it will become invisible and so forth..
For the first press:
timerLayout.setVisibility(View.VISIBLE);
For the second press:
timerLayout.setVisibility(View.INVISIBLE);
Thanks in advance! :)