QVGA (240x320)HVGA (320x480)WQVGA400 (240x400)WQVGA432 (240x432)WVGA800 (480x800)WVGA854 (480x854) The most common is the use of XML matching, mainly for the layout of the control too much, inconvenient in the Java code to modify the situation. To solve the problem of mismatch in XML is very simple, for different mobile phone resolution, the corresponding layout file can be established. For example: Resolution 480X800, you can set up layout-800x400 folder, resolution 240X320, you can create layout-320x240 folder. Note: Large writing in front, for example 800,320, small write in the back, for example 480,240. After you have established the corresponding layout, you also need to adjust the size and position of the controls in the layout on different phones.
Finally, you must configure the following code in Androidmainfest: <supports-screens android:smallscreens= "true" android:normalscreens= "true" Android:largescreens= "true" android:xlargescreens= "true" android:anydensity= "true"/>
Note: Because of the Android version, some versions do not support Xlargescreens, and you can remove android:xlargescreens= "true" directly.
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.