APP size, remove the status bar
Cgrect r = [uiscreen mainscreen]. applicationframe;
R = 320,460
Screen Size
Cgrect RX = [uiscreen mainscreen]. bounds;
R = 320,480
Status Bar size
CGRect rect;rect = [[UIApplication sharedApplication] statusBarFrame];
How to obtain screen
How big is your computer's screen size? How much does the screen resolution fit your computer's size? How much desktop wallpaper do you need to download? Did you ever get to know all this? Today Green tea small weave to take you to understand these computer wallpaper small common sense. After this tutorial netizens can
When using Cocos2d-iphone 2.0 to build the project, the 5s test when the full screen up and down always have black bar, found [[UIScreen mainscreen] bounds] returned the screen size is not 320*568, but 320*480. Later in the project warning found the hint missing [email protected]:Click and then eject:Click Add and then run the project to get 320*568 full
When using HTML5 to do development under Android, to get the actual size of the screen, directly on the code, you can pass the following code test.
Copy Code code as follows:
HTML Precise positioning: Scrollleft,scrollwidth,clientwidth,offsetwidth
ScrollHeight: Gets the scrolling height of the object.ScrollLeft: Sets or gets the left distance between the left edge of an object and the cur
: document.body.offsetHeight (including the width of the edge);Page body Full text width: document.body.scrollWidth;Page body Full text High: document.body.scrollHeight;The page was rolled High: document.body.scrollTop;The webpage is rolled away left: document.body.scrollLeft;Page body part: window.screentop;Page body part left: window.screenleft;High screen resolution: window.screen.height;Width of screen
On a DPI mobile phone, 1dp = 1px; on a 320dpi mobile phone, 1dp = 1.5px
Android obtains the screen size and density
In some cases, we need to obtain the physical size of the screen of the Android mobile phone or Pad to facilitate the interface design or other functions. The following describes how to obtain the physi
As you know, the specific size of the notebook is not the same, large may reach 17, and the small only 10 to save, but for us to install the system, it is not possible to follow each specification for us to form a system, all the system version, font size is set by default, but some friends are puzzled , their computer screen is very small, but the installation o
/* big screen */@media (min-width:1200px) {...}/* Resolution between Tablet PC and small screen pc */@media (min-width:768px) and (max-width:979px) {...}/* Resolution between horizontally placed phones and vertically placed tablets */@media (max-width:767px) {...}/* Horizontally placed phones and devices with smaller resolution */@media (max-width:480px) {...}As a developer, you can write a changed CSS styl
In Android development, you often need to obtain the screen size of the mobile phone. The common method is to use the displaymetrics class to obtain the screen width and height of the mobile phone. The sample code is as follows:
Package whu. ISS. wuxianglong; import android. app. activity; import android. OS. bundle; import android. util. displaymetrics; impor
Android generates a long image for scrollView exceeding the screen size
Many times, we want to share all the content of an interface, but there is too much content, beyond the size of the screen, simple screenshots can no longer meet our needs, at this time, we can capture the Image Based on the height of the scrollVie
This article mainly introduces JS access screen, browser window size, Web page height width of the implementation code. Need friends can come to the reference, I hope to help you. Web page visible Area wide:document.body.clientwidthnbsp; page visible area high:document.body.clientheightnbsp; Web page Visible area wide: document.body.offsetWidth (including edge width) nbsp; page visible Area High: document.
JS get browser window size get screen, browser, page height widthPage visible area wide: document.body.clientWidth
Page visible Area High: document.body.clientHeight
Web page Visible area wide: document.body.offsetWidth (including edge width)
Page visible Area High: document.body.offsetHeight (including edge width)
Page body Full text width: document.body.scrollWidth
The full text of the Web page High: docu
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, and the system selects the appropriate layou
1. Under the Standby page, click "Application".
2. Click "Set".
3. Click "Show and Wallpaper".
4. Click "Single Hand Operation".
5. Click "Shrink screen Size".
6. Click on the "Shrink screen size" right slider, green Representative open.
7. Hold the device in
Formula: screen size = pixel value on the diagonal line of the screen/(density * 160) =/(density * 160)
// Screen sizeDouble screensize;// Pixel value of the diagonal line of the screenDouble diagonal;Displaymetrics dm = new displaymetrics ();Manager. getdefadisplay display (). getmetrics (DM );
Diagonal = math. SQ
Original address: http://blog.sina.com.cn/s/blog_4c277ad30100yfqo.htmlCustomer needs to increase the size of the mobile phone readSo I found two methods. The first: Call Getwindowmanager () through the activity reference but my client has no interface so use another method: just pass in the context reference to method one://Get through WindowManager, This method is the usual method, passed in activitydisplaymetrics dm = new Displaymetrics (); Activity
div id = "WEB_BG" style = "Position:absolute; width:100%; height:100%; z-index:-1" > img style = "position:fixed;" src = "Http://a.lanyes.org/bg1.jpg" height = "100%" = "100%" /> div > In the production page CSS style, a good-looking effect background image is indispensable, in order to consider that each guest user's resolution size is not the same, we will choose to use the color code can be tiled or small image as the backgro
feedback at all, and they can see some of the interactive feedback when they operate with their fingertips. Then, when users use equipment, switch fingertips and finger pads, no doubt reduce their operational efficiency.
Not only that, small touch targets can cause operational errors. When several small touch targets are closer to each other, the user accidentally touches a neighboring target and throws an unexpected action. The error that is caused by the thumb touch
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.