I want to build a full screen method into my Android app.
I have everything set up, my code actually is like:
case R.id.full:
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
return true;
This resides inside my onOptionsItemSelected()
and works without a hassle.
My problem is: How do I give the user the choice to revert it back to normal? Any ideas?
Also, when doing this my text string inside the options menu is still "Go Full Screen", it didn't change. Maybe a text change like "Normal Screen" with the according event would be better.
Thanks in advance!