Android screen adaptation summary, android screen adaptation
I. concepts that need to be understood first
1. screen size: the screen size of a mobile phone we usually call. For example, Apple's 4.7 inch and glory 6's 5.5 inch. The inch is 1 inch (2.54 cm = ).
Calculation method: screen size = diagonal first size (cm)/2.54 (cm)
2. Resolution: The number of pixels displayed on the screen. The larger the number of pixels per unit, the clearer the displayed image.
The resolution is 720*1280, indica
same resolution is 490. In this case, there will be many numbers in the screen density, showing serious fragmentation. The density is the basis for scaling and displaying the interface on the android screen. How does Android adapt to so many screens?
In fact, each Android phone screen has an initial fixed density, which is 120, 160, 240, 320, or 480. We call it "system density ". Do you find the rule? There is a double relationship between values. In
= @ "Uiinterfaceorientationportraitupsidedown";BreakDefaultOrientationdes = @ "";Break}NSLog (@ "System ver:%@, \rorientaion:%@, \rwindow bounds:%@",[Uidevice Currentdevice].systemversion,Orientationdes,Nsstringfromcgrect (self.window.bounds));}
The sample code is simple, create a new project, and then add the above code directly in the delegate.The results on IOS 8 run as follows:
Copy Code code as follows:
2014-06-04 09:26:32.016 svios8[4143:61114] System ver:8.0,
Or
Win7 system upgrades are a way to maintain windows on a day-to-day basis, and when a Win7 system has vulnerabilities that are at risk, Microsoft pushes to release the latest update patches to strengthen the system. Recently, there are users in the update patch pop-up "0x80070643" error prompts, how to do? How will this problem be solved? Then I'll talk to you about the solution that prompts the error code 0x80070643 when Win7 update the patch.
This error was encountered when I was
made.
first, set up a shared directory
For maximum access management, you should first create a new directory in a disk that uses NTFS partition format, name it "tools$," and then copy the Adminpak.msi program from the I386 directory of the Windows Server 2003 installation CD to the tools$ "directory. Then set share permissions for the directory, the authenticated Users group is readable, and the Administrator group is fully controlled.
Tip: The distributed software must be an
.
First, set up a shared directory
For maximum access management, you should first create a new directory in a disk that uses NTFS partition format, name it "tools$," and then copy the Adminpak.msi program from the I386 directory of the Windows Server 2003 installation CD to the tools$ "directory. Then set share permissions for the directory, the authenticated Users group is readable, and the Administrator group is fully controlled. tip: The distributed software must be an
[Deepzoom 3] deepzoom application is created.
Zhou yinhui
Today we will introduce how to create a deepzoom application. If you have used deepzoomcomposer, you will find the "createcollection" option when exporting in deepzoomcomposer. It is determined whether you export an integral graph or an image set. For details about how to export an integral graph, refer to deep zoom composer (Step by Step | more pictures) (cool + Yes) This article Article , Well written ( I suggest you read it, because
satisfied, manufacturers will also provide the corresponding candidate products for users to choose to meet the ultimate fun of our DIY notebook. At present Asus, MSI, the elite and other manufacturers have issued a variety of such products. This article describes the creation of personalized notebooks is the use of MSI MS-1029 notebook barebone based on
In this article, we use
Preface:
For some InstallShield users or enterprises, in addition to the installation of the package interface with the default installation dialog box, sometimes may need to use the installation interface of the platform for product or corporate image promotion, Custom Installation dialog box. Here's how you can customize the dialog box in the installation process in Installscript,basic MSI or InstallScript MSI
Preface:
For some InstallShield users or enterprises, in addition to the installation of the package interface with the default installation dialog box, sometimes may need to use the installation interface of the platform for product or corporate image promotion, Custom Installation dialog box. Here's how you can customize the dialog box in the installation process in Installscript,basic MSI or InstallScript MSI
should first create a new directory in a disk that uses NTFS partition format and name it "tools$", and then copy the Adminpak.msi program from the I386 directory on the Windows Server 2003 installation disc to the tools$ "in the directory. Then set the share permissions for the directory, the "authenticated Users" group is readable and the "Administrator" group is Full control.
Tip: The distributed software must be an MSI encapsulated file, and if
made.
First, set up a shared directory
For maximum access management, you should first create a new directory in a disk that uses NTFS partition format, name it "tools$," and then copy the Adminpak.msi program from the I386 directory of the Windows Server 2003 installation CD to the tools$ "directory. Then set share permissions for the directory, the authenticated Users group is readable, and the Administrator group is fully controlled.Tip: The distributed software must be an
if it is set to 160DP or 160SP. The Width property value is automatically set to 320px. That means 160 * 320/160. 320/160 of these are called density scale factors. That is, if you use the DP and SP, the system will automatically convert based on the change in screen density. Let's see what other units mean. PX: (pixels) (pixels): dots on the screen, related to density. The density is large, the PX on the unit area will be more. Represents the actual pixel of the screen. For example, the 320*
=@"uiinterfaceorientationportrait"; Break; CaseUideviceorientationportraitupsidedown:orientationdes=@"Uiinterfaceorientationportraitupsidedown"; Break; default: Orientationdes=@""; Break; } NSLog (@"System ver:%@, \rorientaion:%@, \rwindow bounds:%@", [Uidevice currentdevice].systemversion, Orientationdes, Nsstringfromcgrect (Self.window.bounds));} The sample code is simple, create a new project, and then add the above code directly in the delegate.Running results on IOS 8 are: the- .-Geneva
First, we need to understand a few concepts1, screen size : That is what we usually say, such as a mobile phone several inches screen. For example, 4.7 inches of apples, 5.5 inches of glory 6. This is said to be in inches (1 inches = 2.54 centimeters).Calculation method: Screen size = diagonal first dimension (cm)/2.54 (cm)generally expressed in inches. 1 inch =2.54cm2. Resolution : The number of pixels displayed on the screen, the more pixels in the unit size, the more clearly the image is disp
state is switched to the game_running state, and the game is officially started. Then the presentrunning () method corresponding to the game_running state will be executed in the same present () method. This is the application of the state machine mode, which will be widely used later. Next, let's take a look at other gamescreen member variables and constructor methods. The Code is as follows:
OrthographicCamera guiCam; Vector3 touchPoint; SpriteBatch batcher; World world; World
Dip: Device Independent pixels (device independent pixel ). Different devices have different display effects, which are related to the hardware of the device. We recommend that you use this function to support WVGA, hvga, and qvga without pixels.Density-independent pixels, an abstract unit based on the physical density of the screen. Density can be understood as the number of pixels per inch (unit: DPI). 1dp is actually equivalent to a point on the screen with a density of DPI (can it be underst
Qvga format:240*320 resolution version: this resolution is generally used for small-screen mobile phones like Samsung gaishi mini s5570. Currently, 68 Android mobile phones use fwvga.Hvga format:320*480 resolution version: Samsung gaishi ace s5830 uses this resolution. Currently, 141 Android phones use fwvga.WVGA format:480*800 resolution version: Samsung i9000 uses this resolution. Currently, 168 Android p
At the beginning, the simulator I selected was WVGA854 with a resolution of 854*480. After the development, I felt very OK when I installed it on a 800*480 mobile phone, but when I installed it on a 480*320 or 320*240 resolution mobile phone, many interfaces were distorted, at this time, I felt the importance of app self-adaptation.
Adaptive mainly encounters two
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.