for the desktop Platform Web layout Everyone is familiar with meta tags, it is always located inside the head element, to do SEO friends must have a special affection for meta, today we say mobile platform meta tag, What are the magical effects of meta tags on mobile platforms? 1. Meta-Viewport When it comes to mobile platform meta tags, you have to say viewport, so what is viewport?Viewport is the viewable area, for desktop browsers, viewport refers to the area that is used to look at the pag
APP size, remove the status bar
Cgrect r = [uiscreen mainscreen]. applicationframe;
This size will not change the width and height as the screen rotates, but after the screen rotates, the width and height will be automatically modified to lose the status bar height.
Portrait screen (4-inch): x = 0, y = 20, width = 320, Height = 548
Horizontal screen (4-inch): x = 0, y = 0, width = 300, Height = 568
Screen Size
Cgrect RX = [uiscreen mainscreen]. bound
to use. To a large extent, the adaptation problem is solved. Sp to use? My suggestion is not to use it. It depends on you. If your app is dedicated to people with poor eyes (such as elders who work hard), you can directly specify a super large font. If you do not consider your eyesight, for the sake of beauty, do not let the user change the font size. If the two types are covered, use sp (not necessarily ~)!
Understanding of unit sp and dp in android UI
Dp is dip. This is basically similar to
presents the Page Based on the viewport, And the viewport remains unchanged after the user scales the page, only that the page content is scaled proportionally. For example, if viewport is not set, the default value of viewport is 980 in pixels ), the layout displayed on the page is the same as that displayed when the desktop's short viewport width is 980. However, because the iPhone screen width is 320, It is scaled down proportionally. Therefore, a
The QML syntax is similar to Json in Qt on Android: Qt Quick introduction. For details, refer to Qt on Android: http download and Json parsing to view Json syntax. Of course we want to learn QML from scratch, so you can also look down directly.Object
The suffix of the QML file is qml, which is actually a text file. The following is a simple QML file:
import QtQuick 2.0import QtQuick.Controls 1.1import QtQuick.Dialogs 1.1import an.qt.ImageProcessor 1.0import QtQuick.Controls.Styles 1.1Rectangle
Unit introduction in Android and unit introduction in android
Many netizens do not quite understand the difference between dp, sp, and px: here we will introduce dp and sp. Dp is dip. This is basically similar to sp. You can use dp or sp to specify attributes such as length and height. If you set the font, you need to use sp. Dp is not related to density. sp is not only related to density, but also to scale. If the screen density is 160, dp and sp are the same as px. 1dp = 1sp = 1px, but if px
Abstract Factory mode of JAVA design mode and java design mode FactoryThis article continues to introduce the abstract factory model of the 23 design patterns series. We have already introduced the simple factory mode and factory method mode. Here we will continue to introduce the third factory mode-Abstract Factory mode, or take automobile manufacturing as an example.Example Background: As customer requirements increase, BMW cars need air conditioners, engines, and other accessories with differ
IOS-determine the current device model of the user (iPhone model)Judgment Method: When we adapt to multiple models, we usually need to consider the model of the User device, and then determine the size of the control or Image Based on the width, height, and resolution of the User device. So how do I know the model of the user's device? I personally use (the following method) 1 [[UIScreen mainScreen] bounds]; To obtain the bounds of the home screen, A familiar friend will surely think of the CGRe
IOS development-iPhone 6/6 Plus adaptation
It took some time to reorganize the iPhone adaptation, which is summarized as follows:
Before iOS6, autosize is generally used for screen adaptation, and the size relationship defect between the view and the parent view is set: (Autosizing layout is insufficient) 1. the relationship between views cannot be set. 2. you cannot set the maximum size for resizing. After the minimum value is iOS6, use the automatic layout. AutoLayoutiOS8 size classes (more a
original file, and delete the logo_linux_clut224.c logo_linux_clut224.o file.
Finally, compile the kernel: (compiled through)
Bytes ----------------------------------------------------------------------------------------------------
Android boot animation consists of two parts:
Android text displayed at startup;
Android luminous animation.
The boot animation mentioned in this article is the first one. The text below begins!
1. Create an image of the current screen pixel (the default simula
transferred from:http://blog.csdn.net/jason0539/article/details/44976775 The simple factory model and the factory method pattern have been described earlier, and the third plant model-Abstract Factory mode-is still being introduced, as is the case with the manufacture of automobiles. Example background: As customers become more demanding, BMW needs different configurations of air conditioning and engine accessories. So the factory started to produce air conditioners and engines to assemble cars.
The physical resolution and screen size of the iphoneUnderstanding the physical resolution and screen size of the iphone is essential in iOS development. Here's a list of the physical resolution and screen sizes of all iphone devices on the market.
The physical resolution of the iphone
1,iphone2g,3g,3gs:320*4802,iphone4,4s:640*9603,iphone5,5s:640*11364,iphone6:750*13345,iphone6plus:1080*1920
Pixel Rendering for iphone
1,iph
For the desktop platform Web layout Everyone is familiar with meta tags, it is always located inside the head element, to do SEO friends must have a special affection for meta, today we say mobile platform META tag, on the mobile platform META tag What are the magical effects?1. Meta-ViewportWhen it comes to mobile platform meta tags, you have to say viewport, so what is viewport?Viewport is the viewable area, for desktop browsers, viewport refers to the area that is used to look at the page aft
size is only a range, which depends on the design of the visual effect to decide, do not memorize, but remember, the font size to use even.You need to know the size of the iphone design (here is a full screen size including the status bar)320*480 iphone3gs (I've never seen a 3GS physical machine, only seen pictures on the internet, but you need to know this size)640*960 IPhone 4/4s (Design dimensions for the 4 ERA)640*1136 IPhone 5/5s/5c (5 era desig
In Android Development, screen densities and screen logic sizes are often used to fit the screens, and a list of screen parameters for common phones is listed here:
pixel density level
pixel density
logical pixel density
screen pixels
screen Size (inch)
wide logic size (DP)
true pixel density
Device Model
ldpi-0.75
120
120
240*320
2.7
W320dp
140.55
device independent pixels (DIP)Device independent pixels (dip,device-independent pixel,density-independent pixel), simply the device-independent pixels: devices-independent units used to measure pixels logically. In mobile Web development, it refers to the logical pixels of CSS.1.5 Device pixel ratio (devicepixelratio)Device pixel ratio (DPR) and PPI have a certain correlation, that is, the larger the PPI, DPR correspondingly larger, 1DPR corresponds to 160ppi, the table is as follows:
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.