From: http://www.apkbus.com/android-83006-1-1.html
# Participate in the android bus 2nd Anniversary Essay activity #Recently, due to the wide development of Android, applications have gradually increased, more features have been learned, and the running platform has gradually expanded.From the initial Mobile Phone platform to today's tablet computers, LCD TVs, and other electronic products, the resolution of cell phones is unknown.In China,
Screen size1. Different layoutAndroid phone screen size is different, there are 480x320,640x360,800x480. How can I get the app to adapt to various screens automatically? In fact, it is very simple to create a different layout folder in the Res directory, such as: layout-640x360,layout-800x480, all layout files will be compiled after compilation Write to the R.java, and the system will choose the appropriate
Screen Size:
I. Different Layout
The screen sizes of Android mobile phones vary by 480X320,640x360,800 X. How can an app automatically adapt to different screens?In fact, it is very simple, just need to create different layout folder under the res directory, such as layout-640x360, layout-800x480, all the layout files will be written to R after compilation. java,
Screen Size1. Different Layout
The screen sizes of Android mobile phones vary by 480X320,640x360,800 X. How can an app automatically adapt to different screens? In fact, it is very simple, just need to create different layout folder under the res directory, such as: layout-640x360, layout-800x480, all the layout files will be written to R after compilation. java,
The screen resolutions of Android mobile phones are varied, which makes it difficult to grasp during development. Fortunately, various engines have a good way to solve this screen resolution problem. unity3d also provides us with a good solution.
When unity3d is used for Android game development, the display effect for different resolutions is like automatic came
, here are 3 sample images to download.
2. Add Launch screen File
Launch screen is a new feature of Xcode6 and IOS8, and it uses a xib file as a splash. This property is automatically ignored when the app is launched in the previous version of iOS and does not cause an exception.First, click New File->ios User Interface->launch screen, and then enable it in the p
1, this is the most conventional method: Right-click Desktop Space, select "Properties"-"settings", in the set label of the window at the bottom left there is a "screen resolution", drag the control block to the left and right to change the screen resolution (each Drag to note the following number), confirm a certain
resolution, there are other, such as 480x640, 600x1024 ...
Therefore, there are problems in trying to do a resolution of different DPI.
I'm going to try to illustrate a picture with a graph, if I don't do the display style for different machines and different resolutions:
In the case of Galaxy Nexus, the screen resolution
One, resolution Independent1. Using DP (DPI)Android uses density-independent pixels (DP) to specify the screen size, which allows zooming to achieve the same effect on devices with different pixel densities and the same screen size. (No problem with different screen sizes ye
like hardware self-test do not show backWe need to change the resolution to add vga=791 to the kernel line.Note: The parameters of the VGA is not random input, can be modified as necessary, my computer above the highest only 16 bits, 24-bit parameters can not be effective, so select vga=791.RHGB quiet can be deleted also can be preserved, see oneself like. After the setup, you need to reboot the system, and then you can see the
Linux Command Line (console) screen resolution Adjustment
In root user mode, enter $ vi/boot/grub. conf (the path may be different or/etc/grub. conf) to open the grub. conf file.
Grub is one of the system starters used to store startup Item settings and information. You must be very careful when modifying the settings. Otherwise, the system will crash ~~
The following is a brief introduction:
A large
like hardware self-test do not show backWe need to change the resolution to add vga=791 to the kernel line.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/26/wKiom1R5k7LARDHOAAKH3b3g62o767.jpg "title=" 1.png " alt= "Wkiom1r5k7lardhoaakh3b3g62o767.jpg"/>Note: The parameters of the VGA is not random input, can be modified as necessary, my computer above the highest only 16 bits, 24-bit parameters can not be effective, so select vga=791.65
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.