I have a video view and i am hiding the navigation bar when video starts playing, but the view is stretched to the empty part created after the hiding the navigation bar. I want to play the video in full screen behind the navigation bar. So that when i do hide/show navigation bar the stretching and shrinking of video view should be avoided. Any suggestions are appreciated ...
Thanks.
What is it basicallly your navigation bar is it a Preloader,..?
for preloader you can dismiss it like
pd.dismiss();
use full screen window with flag SYSTEM_UI_FLAG_HIDE_NAVIGATION :
view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
reference:
http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.