interface layout? We'll explore these in the following sections.
One, the current popular mobile phone screen size
In the figure below, I have taken the top 10 best-selling mobile phones in one of the country's cyber-electric cities for a week:
Although only a week in 2010 years of mobile phone sales rankings, it can be seen that the current use of mobile phone screen is very different, various screen size and resolution have. If you want to fit more groups of users, you need to consider
screen of 800 pixels.You can use For example, the following HTML snippet specifies that the viewport width must strictly match the screen width, and the zoom-in function is disabled:This is an example of defining two viewports. The following syntax shows all the supported viewport properties and basic data attributes accepted by each nature:Content ="Height = [pixel_value | device-height],Width = [pixel_value | device-width],Initial-scale = float_value,Minimum-scale = float_value,Maximum-scale
is the abbreviation for "dot per inch" and the number of pixels per inch.General screen: LDPI is 120,mdpi is 160,hdpi is 240,xhdpi is 320.Reference: Http://developer.android.com/images/screens_support/screens-ranges.pngTwo ways to get screen resolution information:Displaymetrics metrics = new Displaymetrics ();Display display = Activity.getwindowmanager (). Getdefaultdisplay ();Display.getmetrics (metrics);The pixel value obtained here is the device
user unless you need to perform operations or make a choice. Generally, toast or notification is enough for general notifications.
4. Do not use a dialog box-style activity, that is, convert the activity into a dialog box. This is a custom layout, which may be different from the system dialog style. The most serious problem is that when the system style changes, the sub-classes of dialog will change, but the activity-Style dialog box will not change. You can find the activity dialog box in ICS,
the progress bar below is synchronized with the text above-(void) titleClick :( UIButton *) button {_ titleView. frame = CGRectMake (button. frame. origin. x, 27, 50, 3 );}
// Set the scrollView of the intermediate image. // although three images are played, you need to set 5 space sizes for loop playback, is how to realize the loop specific please see http://blog.csdn.net/canyeyj/article/details/38963435-(void) setupImageScrollView {self. imageScrollView = [[UIScrollView alloc] initWithFrame
Document directory
Image Link (Link) scroll up code
Code for Scrolling up the link of wheat with image flash effect
Link 1)
Link name Link name Link name Link name Link name Link name Link name Link name Link name Link name
The Code is as follows:
Background = http://static3.photo.sina.com.cn/orignal/494b5c3d1edc746972132> Height = 320> Scrollamount = 1 scrolldelay = 1 direction = up width = 180 Height =
Php uses regular expressions to process values that are not required in strings. Today, when collecting images from the Momo website, the resolution of the images will be changed to 320*480, and the original images contain pixel information. For example, the clear Hut (320 today, when collecting images on Mo's Web site, because I will eventually change the image resolution to
animation start angleThe Rotation Angle of the object at the end of the toDegrees animation, representing clockwiseThe ready TX attribute is the starting position of the animation relative to the X coordinate of the object.The Ty attribute is the starting position of the animation relative to the Y coordinate of the object -->
Scale. xml Scaling:
[Cpp]Android: interpolator = "@ android: anim/decelerate_interpolator"Android: fromXScale = "0.0"Android: toXScale = "1.5"Android: fromYScale = "0.0"A
display normally on the iPhone5. When you look at it with iphone6, your page may be out of the way. Because you have not yet iphone6 the page, that is, you have not modified the size of the PX value of REM corresponding to the IPhone6.1.2.5.1 using JS to modify the size of REM valuesThis method is relatively simple, get the other phone screen relative to the size of the iphone5 phone screen, and then enlarge and reduce the HTML fontsize value. One drawback of this approach is that the fontsize
III (Android 4.4.4-api)-Genymotion virtual machine
IPhone 6 (IOS 9.1)-Real machine
IphoneIPhone adaptation is simple and only needs to be set width . Like what:name="viewport" content="width=320, user-scalable=no" />This way your page will display a fixed width of 320 pixels on all iphones, whether it's an iphone 6 with a width of 375 pixels or a 414-megapixel iphone 6 Plus.AndroidThe adaptation o
# Include # Include Void circlePoint (int x, int y)/* circle program by octal Method */{Circle (320 + x * 20,240 + y *, 3 );Circle (320 + y * 20,240 + x *, 3 );Circle (320-y * 20,240 + x * 20, 3 );Circle (320-x * 20,240 + y * 20, 3 );Circle (320-x * 20,240 + y * 20, 3 );Circ
Px: The pixel of the screen.In: inchesMM: mmPT: LB, 1/72 inchDP: an abstract unit based on density. If a screen of DPI is displayed, 1dp = 1px.Dip: equivalent to DPSP: similar to DP, but it also scales according to the user's font size preference.We recommend that you use SP as the unit of text, and dip for others.
The following is an overview of the relationship between DIP and PX:
The following figure shows the resolution information density, which is the screen density.
Name
Reso
1. Several termsVGA, HVGA, QVGA, WVGA, WQVGAThese terms refer to the screen resolution.VGA: Video Graphics Array: displays the drawing matrix, which is equivalent to 640x480 pixels;HVGA: Half-size VGA; that is, Half of VGA, resolution: 480 × 320;QVGA: Quarter VGA; that is, 1/4 of VGA, resolution: 320 × 240;WVGA: Wide Video Graphics Array; that is, expanded VGA with a resolution of 800x480 pixels;
WQVGA: Wid
inside the verification code before learning how to use the image verification code.
First look at the getcode.asp file, there are a few lines is this:
Ados.loadfromfile (Server.MapPath) ("body." Fix "))
Ados1.write Ados.read (1280)
For I=0 to 3
ados.position= (9-zimg (i)) *320
ados1.position=i*320
Ados1.write Ados.read (320)
Next
Ados.loadfromfile (Server.Map
InformationMethod 1:Ethtool eth0 can use this command to view NIC-related technical indicators(Not all network cards support this command)Ethtool-I eth1 add-I parameters to view the NIC Driver to try other parameters to view Nic related technical parametersMethod 2:You can also view the NIC name (manufacturer) and other information through dmesg | grep eth0.View/etc/sysconfig/network-scripts/ifcfg-eth0 to see the current Nic configuration including IP, gateway address and other information.You
, the mood to masturbate a few lol and furnace stone is also no problem. However, the problem of touchscreen failure makes this feeling completely negative, using less than one months to encounter the problem of touch screen failure. Then is a variety of online search, a variety of after-sales maintenance, for this purpose also specially wrote a drying single spit groove.pit Daddy after sale: Lenovo Miix2 (8 inch) Win8 Tablet use testimonials additional Modifications (2014-08-2713:26:01): I want
Below is an official tutorial on how to uninstall Superfish and how to remove the security certificate provided by a small collation.
Most of the affected Lenovo computers were produced in September 2014 and December, with models as follows:
G Series: G410,g510,g710,g40-70,g50-70,g40-30,g50-30,g40-45,g50-45
U series: U330p,u430p,u330touch,u430touch,u530touch
Y Series: y430p,y40-70,y50-70
Z Series: z40-75,z50-75,z40-70,z50-70
S series: S310,s410,s40-70,s415,s415touch,s20-30,s20-
).XLarge is the category that was added from Android 2.3 (API level 9).DPI is the abbreviation for "dot per inch" and the number of pixels per inch.General screen: LDPI is 120,mdpi is 160,hdpi is 240,xhdpi is 320.Third, how to achieve adaptive screen size?1) Interface layout aspectIt is necessary to prepare 5 sets of layouts according to the size of the physical size, layout (put some common layout XML files, such as the top and bottom layouts in the
Basic knowledgeQVGA 240*320 pixels |VGA 640*480 pixels |WVGA 800*480 pixels |HVGA 480*320 pixels |See that a lot of people don't understand the difference between DP, SP, and PX: Now let's introduce the DP and SP.DP is also dip. This is basically similar to SP.You can use a DP or SP if you set properties that represent length, height, and so on. However, if you set the font, you need to use the SP. The DP i
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
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.