Android 4.0 phones only have virtual buttons, which actually go invisible when playing youtube/video at fullscreen (the video portion takes over where the buttons are).
I want to do this, but haven't found a way.
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
or
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
do not cover the virtual buttons.
Here is an example that shows the type of full screen I'm talking about:
http://www.youtube.com/watch?v=Lw_O1JpmPns
Tapping the Menu button (three vertical dots) in the upper right-hand corner of the screen (or tap the hardware menu button on those devices having one) Selecting Add to homescreen from the menu. Tapping the Add button in the pop up dialog. Then, from the home screen, tap the app icon to open in fullscreen mode.
Okay, I added this SYSTEM_UI_FLAG_HIDE_NAVIGATION
flag to my video activity and that hid the virtual buttons.
WebView view = new WebView(this);
view.setSystemUiVisibility(WebView.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
Another choice is to use the SYSTEM_UI_FLAG_LOW_PROFILE
flag. This doesn't hide the buttons though. Instead it makes the buttons go to "Low Profile" mode (basically turns them into little dots)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With