Android applications cannot be displayed in full screen

Source: Internet
Author: User

A few days ago, the customer reflected that the client could not be displayed in full screen (a large screen mobile phone). I thought it was impossible. The result was simulated using a simulator to find that this problem exists, google and Baidu have not found a solution to this problem, and some friends have not solved it. It is best to find out the problem carefully ......

For Android phones or tablets, full screen display is not supportedHowever, layout does not need to display the layout in full screen as follows:

android:layout_width="fill_parent" android:layout_height="fill_parent"

The display effect is as follows:

Solution: androidmanifest. xml

<Uses-SDK Android: minsdkversion = "3"/>

Set the minimum number of mobile phones supporting the SDK to 3 or above, 3 to sdk1.5, and 4: The corresponding SDK to 1.6. If the value is greater than or equal to 4, the full screen is displayed.(Note: The fill_parent attribute must be set in layout)
The same is true for tablets!

Display Effect:

For original works, please indicate the source for reprinting. Thank you!

Address: http://www.cnblogs.com/zhangkai281/archive/2011/07/21/2112513.html

Xiangxiang supplement:

This does not happen on every phone. However, once a page appears, each page of the entire application only occupies a part of the screen.

The minsdk value corresponds to the Android version used by the project. I have never noticed this sentence before. It was quite important.

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.