suitability on generailized size/density.In the design of the actual layout, should be used in the unit is DP, so you can avoid the screen due to different dpi, the most typical example is the retina screen of Apple.
Xlarge:at least 960DP x 720DP
Large:at least 640DP x 480DP
Normal:at least 470DP x 320DP
Small:at least 426DP x 320DP
PX = DP * (dpi/160)
For example, a 240dpi screen, 1DP is equivalent to 1.5 pixels
Px,dpi,dp,dip,sp
Un
: 1x16=16px=1rem; the browser defaults to 16px may cause the REM computation of trouble and many decimal places, so we can also do this way to initialize the root element:html{ font-size=62.5%//This is 10/16x100%=62.5% is the default 10px font size}After this initialization, we are going to have a lot less hassle when it comes to REM computing.2. Setting viewport mates for zoomingUsually in the writing of the mobile page, we will set viewport to ensure that the page scaling is not a problem, t
Php makes good use of regular expressions to process the Value nbsp, in the end, I will change the image resolution to 320*480, and the original image contains pixel information. Nbsp; for example, clear cabin (320 php uses regular expressions to process the values required in strings
Today, when collecting images from the Momo website, the resolution of the images will be changed to
VBR Encoding(Strongly recommended)Alt preset extreme (average 256 kbps) we sometimes see online ". LAME-APX." In this form, we can also include this tag in the file name. This is a parameter recommended by lame developers. The optimal balance between sound quality and file size is recommended.Input value:-- Alt-preset extreme % S % d
Alt preset standard (average 192 Kbps) we sometimes see online ". LAME-APS." In this form, we can also include this tag in the file name.Input value:-- Alt-preset s
. The Nth message is specified as N. In POP3 commands and responses, the message number and length are in decimal format.
The following is a summary of the above three commands:
Command Format
Parameters
Restrictions
Response
Example
User Name
Specifies the mailbox string, which is critical to the server
Only when the user and PASS commands fail or are in the "OK" status
+ OK: valid email address;-Err: invalid email address
C: User mroseS: + OK mrose i
Today I have made a good research on the speech compression encoding in Android, and I have some tips:
First of all on the collection of sound source format is the PCM-16bit format, What Is PCM format, you can see the following article:
Http://blog.csdn.net/tkboy/archive/2009/12/19/5038947.aspx
PCM is a non-compressed sound source. PCM signals are digital signals composed of [1], [0], and other symbols. This format is used by Android devices, we also perform compression encoding for this form
displaying the content on the screen. The Display memory is actually one or several large-scale integrated circuits installed on the display card. Its capacity is 1 m, 2 m, 4 m, 8 m, etc, in dos, the memory that we can access is only 1 MB (this is the limitation of DoS). The address ranges from H to fffffh. The memory is divided into different blocks based on the purpose, the address allocated by the system to the graphic buffer (Display memory) is between a0000h and bffffh, And the size is KB.
blocked, or some codes in a custom view occupy too much CPU.9. java. lang. IllegalStateException: The specified child alReady has a parent. You must call removeView () on the child's parent first, indicating that the object is missing,Solution: Find whether the object is still there, or use multiple examples.
10. java. lang. illegalStateException: The content of the adapter has changed but ListView did not receive a notification. make sure the content of your adapter is not modified from a back
and height of the View.
Now we can see the difference between dp and percentage, and the percentage can better solve our adaptation problem.
Some tips adaptation
Let's take a look at some matching tips.
In fact, the above three tip points are used in the final analysis. match_parent is equivalent to 100% reference parent control; weight is allocated proportionally; custom view is nothing more than because most of the size is calculated by percentage;
Through these tips, we can see that if we
generailized size/density.
In actual Layout design, the Unit should be dp, which can avoid the impact caused by different screen dpi. The most typical example is Apple's retina screen.
Xlarge: at least 960dp x 720dp
Large: at least 640dp x 480dp
Normal: at least 470dp x 320dp
Small: at least between DP x 320dp
Px = dp * (dpi/160)
For example, for a 1.5 DPI screen, 1dp is equivalent to pixels.
Px, dpi, dp, dip, sp
Measurement Unit
Explanation
Px (pixel)
Tags: Android HTTP Io ar OS use for SP strong Px, DP, dip, SP, In, mm, PT detailed analysis
Px :( pixels): the pixels on the screen. Different devices have the same display effect. Generally, we use hvga to represent 320x480 pixels, which is usually used.
Dip: (device independent pixels), device independent pixels. This is related to the hardware of the device. We recommend that you use this method to support wcga, hvga, and qvga, instead of pixels. Equivalent to DP.
DP: an abstract unit
" (vertical screen), the camera preview will appear left-leaning 90 degrees phenomenon, and loss ratio. The reason for this (I suspect) is that the camera control map is fixed by the Android bottom, is landscape, and produces a 320*480-like image, and if replaced by portrait, the camera still produces a 320*480 image, Then the corresponding to put into a 480*320
((TextView) v). Settextsize (adjustfontsize+4);
}else{
((TextView) v). Settextsize (Adjustfontsize);
}
}
}
}
Get font Size
public static int adjustfontsize (int screenwidth, int screenheight) {
screenwidth=screenwidth>screenheight?screenwidth:screenheight;
/**
* 1. Get the width of the view in the onsizechanged of the view, typically the default width is 320, so calculate a scaling ratio
Rate = (float) w/
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 af
Before I write this article, I have to introduce a few things:1th: What is displayed above the screen is independent of the size of the screen2nd: What is displayed above the screen is completely independent of the resolution3rd: What is displayed above the screen is irrelevant to screen size, screen resolution, PPI, etc.So what is it that affects how much of the content is displayed on the screen? In Apple's iOS device, that is the number of points (PT) points on the screen, point is an absolut
upper-left corner of the parent controlBounds: The top left corner of the control itself is the origin, showing the current size bounds changes will change the control's frame22. Please indicate the difference between xib and storyboard.are used to describe the software interfaceXib is lightweight and is used to describe the local UI interfaceStroyboard is a heavyweight, a multi-interface for describing the entire software, and the ability to show jump relationships between multiple interfaces2
Bar, and scroll bar are removed.
. For traditional WEB pages, the 980 width display on the iphone is normal and full screen, but it may be a problem for webapps, on the iphone, our webapp is usually 320 in width under the vertical screen. What is the effect of our 320 page on the iphone? Some people may think that the iPhone is not 320 in width. It should be ful
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.