Andriod full screen processing (video player)

Source: Internet
Author: User

1. Introduction

In Android apps, some require full screen, no status bar (System status bar), title bar (ActionBar), and navigation bar (Navigation bar), which is the Google API Immpresion mode as defined in the. This pattern is often used by game applications.

There are also applications that need to switch between full-screen and non-full-screen modes, such as video players.


2. UI Flag

(1) Display statusbar and Navigation Bar

        Mshowflags =                View.system_ui_flag_layout_fullscreen                        | View.system_ui_flag_layout_hide_navigation                        | view.system_ui_flag_layout_stable;      Manchorview.setsystemuivisibility (Mshowflags);


(2) HideStatusBar and Navigation Bar

        Mhideflags = View.system_ui_flag_low_profile                | View.system_ui_flag_layout_fullscreen                | View.system_ui_flag_fullscreen                | View.system_ui_flag_immersive                | View.system_ui_flag_layout_hide_navigation                | view.system_ui_flag_hide_navigation;       Manchorview.setsystemuivisibility (Mhideflags);

3.ActionBar OverLay

Set Actionbar to: floating on top of view

        Requestwindowfeature (Window.feature_action_bar);        Requestwindowfeature (Window.feature_action_bar_overlay);



Andriod full screen processing (video player)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.