After the Android mobile phone is set to untitled, the program fails to solve the problem (how to set the full screen untitled mobile phone with the simplest statement)

Source: Internet
Author: User

After the phone is set to untitled, it will always go down. At first it was thought that it was a layout problem. If it was changed, it was still not in progress. Then we created a new project and found that it was still not in progress! What's going on? I used to do this. I used to set full screen without title. These statements must be located before setcontentview! Remember! I am still not familiar with this knowledge, so I wrote this article and reviewed it!

Set no title + full screen:

Requestwindowfeature (window. feature_no_title );
Int flag = windowmanager. layoutparams. flag_fullscreen;
Window mywindow = This. getwindow ();
Mywindow. setflags (flag, flag );

These four statements are very short and better than the methods I have previously set!

Related Article

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.