the height of the phone screen, where the height corresponds to the width of the phone screen.Second, set FPS, that is, the video preview frame rate.Similarly, FPS has only a limited number of values, and we can get a preview fps supported by the phone via Getsupportedpreviewfpsrange.The following code prints out all FPS
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
Today, my friend uses Photoshop to process the picture to save the specified size, but she only to the centimeter to shape the sense, but in the software to save the picture does not have this unit, can only save the units of pixels; Other software can only be saved in inches. I went to the internet to find the next information, finally found the conversion formula, special record:) 72 Megapixels/inch = 28.346 px/cm300 megapixels/inch = 118.11 px/cm1 cm = 0.3937 inches1 inch = 2.54 cm First of a
resolution does not mean the aspect ratio of the screen. In Android systems, the program generally does not directly process the resolution.
DensityPixels arranged along the length and width of the Screen Based on the screen resolution.Low-density screens have only a small number of pixels in the long and wide directions, while high-density screens usually have many-or even very many-pixels arranged in the same area. The screen density is very important. For example, the interface elements (suc
android. graphics. Paint;Import android. graphics. RectF;Import android. util. AttributeSet;Import android. view. SurfaceHolder;Import android. view. SurfaceView;
/**** Custom View** @ Author zhangjia**/Public class BallView extends SurfaceView implements SurfaceHolder. Callback {Static final int V_MAX = 35; // maximum horizontal speed of the ballStatic final int V_MIN = 15; // Minimum horizontal speed of the ball
Public static final int WOOD_EDGE = 60; // X coordinate of the right side of the
); capital B Represents byte, that is, byte, one byte = eight digits, that is, 1B = 8B; the preceding capital K indicates a thousand characters, that is, a thousand characters (Kb) or kilobytes (KB ). Indicates the size unit of the file. Generally, bytes (Kb) are used to indicate the file size.Kbps: First, you need to know that PS refers to/s, that is, every second. Kbps indicates the network speed, that is, the number of kilobytes of information transmitted per second (k indicates the kilobytes
B indicates byte, that is, byte. one byte = eight bits, that is, 1B = 8B; the upper-case k indicates the meaning of a thousand, that is, a thousand bits (Kb) or a thousand bits (KB ). Indicates the size unit of the file. Generally, bytes (Kb) are used to indicate the file size. Kbps: First, you need to know that PS refers to/s, that is, every second. Kbps indicates the network speed, that is, the number of kilobytes of information transmitted per second (k indicates the kilobytes and kb indicat
speed, if it is broadband set 30~40, if in a more than one station set up 25,modem=15,lan=50
Con_color 255 50..........HUD Color (RGB)
DM 1 .... ... set a message to start the game at the beginning of the introduction of the first information on the
Drawradar .............. Display radar, sometimes the radar will suddenly disappear, it can be used (sometimes the server turns off you don't use it)
Fastsprites 0. ... smoke effects, 0 lifelike, 1 like super, 2 like Gameboy, and so on.
Fps_max
With more and more users of mobile devices, Android phones have more than 1.3 million activations per day, so our webapp for mobile terminals are starting to follow. This paper mainly introduces the knowledge and experience of webapp development and debugging, and gives several alternative solutions.
I. Basic CONCEPTS
(1) CSS pixels and device pixels
CSS Pixels: An abstract unit used by browsers to draw content on a Web page.
Device pixels: Displays the smallest physical unit of the screen,
Article 3. Pre-development knowledge supplement: length units and screen resolutions of Android, which are also reproduced ~~, Android screen resolutionThis article is a bit early, but it is very practical. For more information about the Unit, see the red part.
Screen Resolution Basics
1. terms and concepts
Terms
Description
Remarks
Screen size)
It refers to the actual physical size of the mobile phone, such as the commonly used 2.8 inch, 3.2 inch, 3.5 inch, 3.7 inch
Knowledge required for mobile webapp development and webapp Development
There are more and more mobile devices, and more than 1.3 million android mobile phones are activated every day. Therefore, our webapps for mobile terminals are also starting to follow up. This article describes the knowledge and experience of webapp development and debugging, and provides several optional solutions.I. Basic concepts (1) CSS pixels and device pixels
CSS pixels: the abstract unit used by the browser to draw c
 ̄  ̄  ̄  ̄  ̄  ̄  ̄  ̄ √ theAngleLineRulerinch
Can figure out the dpi of just two screens, one is440dpi, the other is184dpi。Note that dpi , dip(dp) like the way you do it, don't confuse the former with density , which is related to pixels .Division of 1.1.3 DPIAndroid uses a dpi value of 160 as a benchmark-- baseline
If a device is
PX (pixel) pixels, that is, the display point on the screen, in (inch) inch, per inch = 2.54 cm, we often say that a few inches of mobile phones, refers to the phone screen diagonal is a few inch, dpi (dots per inch) the number of pixels, 320x480 screen, If the width is 1 inches, the horizontal dpi is 320/1 (wide), and if the height is 1.5, the vertical dpi is 48
1 . Image Scaling after alignment problem in the Android development, how to use pictures is a headache for many developers. The most common problem is debugging a good UI on a phone , which can deform on a different dpi phone. A Ndroid provides a different fit dpi dpi dpi all use a set of pict
size to display the maximum page pixels, such as in this window can display a 800-pixel page, the page is designed to 800 pixels, the full display, This window you can understand as the picture, the picture looks the same size, but their pixels may not be the same, that is the meaning.You can define the properties of the window in the For example, in the following paragraph from the HTML code, it sets the window size exactly matches the width of the device screen, and the zoom function is disab
which the user is allowed to zoom.User-scalable: Whether the user can manually scale
Width
Sets the width of the layout viewport , as a positive integer, or the string "Width-device"
Initial-scale
Sets the initial zoom value of the page, which is a number that can be taken with decimals
Minimum-scale
Allows the user's minimum zoom value to be a number that can be taken with decimals
Maximum-scale
Allows the user's
before I do, I'm going to introduce a little trick for a friend who is designing with PS.As I said before, we want to think about the interface in logical pixel size. Embodied in the design process, is to set the unit into a logical pixel. Open the PS Preferences-unit and ruler interface to change the size and text units to point. The point here is PT, which is used by the organization, whether it's iOS, Android or Web apps. Of course, the name of each platform unit should be remembered. Here w
pages that have been optimized for mobile pages:name content initial-scale Maximum-scale=1″>meta>If you want the page to support responsive design, you need to add the viewport meta tag to the page. See the responsive design in bootstrap.The complete viewport syntax is as follows:-name= "Viewport" Content = " height = [Pixel_value | device-height], width = [Pixel_value | device-width], Initial-scale = Float_value, minimum-scale = float_val
different phones, such as a 96*96 pixel control that looks smaller in the overall UI in the increasingly high-resolution phone.ImageAppears similar to this, the overall layout effect may deform, so the PX unit is not recommended in the layout file.DP Direct AdaptationFor this scenario, Android recommends using DP as a unit of size to fit the UI.So what is DP? DP refers to a device-independent pixel, a DP-sized unit of control, in different resolutions and sizes of the phone on behalf of differe
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.