Obtain the Android screen size, widget size, status bar/notification bar height, navigation bar height, and android screen size.1. Get Android screen size
We can use the getSize () meth
1. In standard mode, slide the screen to the left.2. Click "Set".3. Click "Show".4. Click "Single Hand Operation".5. Click on the "Shrink screen size" right slider, green Representative open.6. Through fast and continuous press home key three times to reduce the display size
1. Under the Standby page, click "Apps" to open and we find "display and wallpaper" under "Settings" to open the entry, as shown in the following figure.
4. Then we will see that there is a "one-hand operation" that we clicked to open and entered, as shown in the following figure.
5. After that we will see a "Zoom Out screen size" open in the on
Today's mobile phone brands and models are more and more, resulting in our usual writing layout in a different mobile devices will display different effects,
For example, our design draft a view size is 300px, if directly write 300px, may be in the current device display normal, but to other devices may be small or large, which requires us to match the screen.
Android native words have their own adaptation
/notification bar Public Static int Getstatusbarheight(Context context) {classNULL; Object obj =NULL; Field field =NULL;intx =0, Statusbarheight =0;Try{c = class.forname ("Com.android.internal.r$dimen"); obj = C.newinstance (); field = C.getfield ("Status_bar_height"); x = Integer.parseint (field.Get(obj). toString ()); Statusbarheight = Context.getresources (). getdimensionpixelsize (x); }Catch(Exception E1) {E1.printstacktrace (); }returnStatusbarheight; }4. Get the h
Brief introduction:Always understand the common units in Android is not very thorough, share under today. What's not in place, welcome to point outMeaning:1, Screen Size: Physical size (cell phone diagonal size, such as 4.7, 5, 5.5 inches of mobile phones)2. Density (dpi): t
Share with you today how to get the current iOS device CPU model ,CPU cores ,GPU,GPU cores , screen resolution , screen size , PPI and other information. I'm sure you'll find that the API, which is officially open through Apple, wants to get some information above the current device. Now Apple's hardware update speed is quite fast, but also on the internet to fin
iphone for the first generationIn 2007, the first iphone was released and the screen was 480 pixels wide. The following are arranged in the order of width and height. This resolution has remained the same for the iphone 3GS.At that time, iOS apps (apps) were written to support absolute targeting only. For example, a button (x, y, width, height) = (20, 30, 40, 50) means its width is 40 pixels, the height is 50 pixels, and the position is placed (20, 20
) wvga854* (480x854)
Table 1
3.3 Mobile phone size distribution (http://developer.android.com/resources/dashboard/screens.html), as shown in Figure 3, is currently mainly based on the resolution of 800*480 and 854* 480 of mobile phone users are mostly
Figure 3
From the above screen size distribution, in fact, the mobile phone only consid
Ze:0.8rem; 100px * 0.8 = 80px
}
Then let's look at the flexible.js principle.
The principle of flexible.js is to set the font-size of an HTML element based on the width of the screen, by calculating the width of the screen and dividing it by 10, assigning the Font-size attribute to the HTML tag.
As an exa
Vmwarevm screen size (screen resolution) adjustment 1. After the Linux Virtual Machine screen resolution in VMware is adjusted, install and modify the Linux resolution command line to install the Linux Virtual Machine in VMware, the screen resolution is usually set to 800x60
directly under these two sets of graphs to cut down on it.If you need to adapt a different picture for 5 and 6 an [email protected] an [email protected] then need to determine the phone versionApple website image size requirements https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/ ICONMATRIX.HTML#//APPLE_REF/DOC/UID/TP40006556-CH27-SW1//Related website Data http://ju
want to support:You can also combine different modes by selecting width and height, and then provide the corresponding picture version for some patterns according to the actual situation. Fill in the corresponding pattern with the corresponding picture. Shows an image Set that contains several patterns that indicate the meaning of the identities in them:5. User-triggered screen state changesThe
application ' s UI, to ensure proper display of your UI on screens with Di Fferent densities. That means on the 160dpi screen, 1dip=1px.It is related to screen density, if the screen density is large, 1dip represents more px, such as on the 320dpi screen, 1dip=2px. Why should we use dip in the layout, not with PX? Be
There are more and more Windows Phone devices on the market, and the size and resolution are more and more, especially the WP8.1 era. The people who have done WP development know that application adaptation is actually more simple than Android, one of the important reasons is that Microsoft is claiming that all WP devices will be 2 benchmark resolution to develop, that is, 800:480 and 853:480. wp8+ application adaptation is relatively simple, mainly t
Think each time by a variety of resolution name, proportion make a mess of it? Let's get you to know all the resolutions! The common screen proportions are actually only three: 4:3, 16:9, and 16:10, plus a special (but also common) 5:4.
4:3 Family
4:3 is the most common screen ratio, passed down from the television age to the old standard. In the
Strange shape of the small screen mobile phone all-powerful era is gone forever. In fact, industry trends in recent years have shown that large-screen handsets, or giant-screen handsets, will dominate for a long time. And now, it is time to sum up the past few years, the face of large screen mobile phones, the designer
width: window. Screen. availwidth -------------------
Technical PointsThis section uses the window attributes of the Document Object. The main functions and usage of these attributes are as follows.
To obtain the window size, different properties and methods are required for different browsers: to check the actual size of the window, use the window attribute in
physical size:Layout (put some general layout XML files, such as the layout at the top and bottom of the interface, without changing the screen size, similar to the title bar of the S window ),Layout-small (layout with a screen size less than 3 inch ),Layout-normal (the screen
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.