In the project development process, usually have to encounter screen adaptation problems, the following is my project in the development process summed upA set of screen adaptation program, share to everyone;The Android screen fits some concepts that you must understand:Pxis the abbreviation for the English word pixel, which means pixels, dots on the screen. The resolution we usually refer to as 480x800 is the pixel.DpiDPI is the abbreviation for dots per inch, in dots, which contains the number
What is DPI? DPI is the abbreviation for "dot per inch" and the number of pixels per inch. Four density classifications: ldpi (Low), MDPI (Medium), hdpi (High), and xhdpi (extra high) General screen: LDPI is 120,mdpi is 160,hdpi is 240,xhdpi is 320.DPI Calculation formula dpi= Diagonal pixel value/sizePhone screen reso
-sawtooth is an image processing technique that uses foreground pixels close to the edge of the background to make the eyes look smoother. ArcGISThe server cache does not use real anti-aliasing, but does similar work to make the labels, unfilled lines, and polygon elements look smoother. If you are doing vector layer and image superposition, be careful to useThis tool. The background color of the Data box depends on the color of the anti-sawtooth element. By default, the color of the background
Document directory
(1) CSS pixels and device pixels
(2) PPI/DPI
(3) density determines the proportion
(4) use of viewport
(1) Simple and rude
(2) perfection
(3) reasonable compromise
(1) weinre Remote Real-time debugging
(2) AVD simulator debugging
(3) Mobile Phone packet capture and host Configuration
There are more and more mobile devices, and more than 1.3 million android mobile phones are activated every day. Therefore, our webapps f
When they are displayed on the target device and they also record the features of the target device, Enhanced Metafile images record their sizes. The image size displayed on the printer device is the same as the document size. There can be a major difference between the displayed size and the document size on the screen device because the physical features (resolutions) of the screen usually do not match the logical features used by windows.
The enhanced primitive File Header records the follow
DPI indicates the resolution, which is the number of points per inch in length. DPI can be subdivided into horizontal resolution and vertical resolution. For example, if the horizontal resolution of a 1 inch * 1 inch image is 100 dpi and the vertical resolution is 50 DPI, it divides horizontally into 100 segments per i
Preface
At the beginning of Android's design, the UI was adapted to multiple platforms. It provided a complete adaptation mechanism and became more accurate with the development of the version, UI adaptation is mainly influenced by two factors: screen size (screen width and pixel height) and screen density. Different adaptation schemes are used for different application scenarios, this document is only applicable to Android4.0 and earlier versions.
Related Concepts
Resolution:The number of pixe
Qt on Android: Create a scalable interface, qtandroid
To use Qt to develop Android applications, you also need to adapt to different mobile devices and adapt to a variety of screens and resolutions. This time we will discuss how to use the mechanism provided by Qt to create a scalable interface.DPI
DPI must be explained.
DPI, dot per inch, that is, the number of points contained in each inch. Another concep
Address: http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/0120/2331.html1. Program Start icon:LDPI (Low Density screen,120 DPI) with an icon size of X-px.MDPI (Medium Density screen, DPI) with an icon size of x px.HDPI (High Density-screen, + DPI) with an icon size of X-px.XHDPI (extra-high density screen, at + DPI
micro-tricks.Name the picture android_logo.png, and then put it under the Drawable-xxhdpi folder. Why do you put it in this folder? Because the density of my phone's screen is xxhdpi. So how do you know the density of your phone's screen? You can use the following method to get the DPI value to the screen first:float xdpi = getResources().getDisplayMetrics().xdpi;float ydpi = getResources().getDisplayMetrics().ydpi;where xdpi represents the
issue will be resolved effectively in the next preview version. To use Consumer Preview to test these APIs on your own site, use the Security tab in the Internet Properties dialog box to join the site's domain to the list of trusted sites.Desktop task bar NotificationsPinned site notifications displayed as icon overlays in the desktop taskbar continue to apply to Windows 8 and IE10 on the desktop. There is no such notification for pinned sites in the Windows 8 start screen. Windows 8 is not onl
1. Terminology and concepts
Android Phone UI Design resolution Basics
Screen size (on-screen dimensions)
Refers to the actual physical size of the phone, such as 2.8-inch, 3.2-inch, 3.5-inch, 3.7-inch
Motorola Milestone mobile phone is 3.7 inches
Aspect Ratio (Wide-high ratio)
Refers to the actual physical dimensions of the wide-high ratio, divided into long and nolong
Milestone is 16:9 and belongs to long.
Resolution (resolution)
As with the computer resolution concept, ref
initial scale, that is, the scale when the page is loaded for the first time.
Maximum-scale: the maximum scale that users can scale.
Minimum-scale: minimum scale that allows users to scale.
User-scalable: whether the user can manually Scale
Questions about viewport
Viewport is not only unique in ios, but also has viewport on android and winphone. They solve the same problem, that is, directly resetting the resolution between the physical size and the browser through
MATLABCodeThere are three ways to control plotting:
1,Saveas
Save the image by default regardless of the image size you set
It is actually the Save As operation in the visual interface.
2,Imwrite
Save the image as WYSIWYG
An important purpose of this function is to save images with the specified Alpha value (see the following figure)
The input parameter must be image data and cannot be an image handle. Therefore, it is often used with imread or getframe.
3,Print
It was not us
1. Screen related concepts 1.1 resolutionThe number of pixels on the screen.1.2 screen sizeIt 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 inchAndroid divides the screen size into four levels (small, normal, large, and extra large ).1.3 screen DensityNumber of records per inchThe cell phone can have the same resolution, but the screen size can be different,Diagonal pixel indicates the pixel value of the diagonal line (=),
The WPF form and all internal elements are measured by device-independent units. A device irrelevant unit is defined as one of 96 points of 1 inch, that is, 1/96 inch.
Suppose we have created a WPF button in 96X96 units. If standard Windows DPI settings (96 dpi) are used ), the size of each unit is a physical pixel in the real world. The calculation formula is as follows:
Physical unit size = device indep
The UI Designer should not know the android screen knowledge, uiandroid
Provided by Beijing shangxuetang
Many designers and engineers were confused by the various screens of Android devices. I did both the UI design and the android interface layout. I was just familiar with this content, I have also made related lectures within the company. Here, I will reorganize this part of knowledge and share it with you!
1Understand several concepts
(1) Resolution. Resolution refers to the number of pixel p
You are playing CSGO.There is n Main weapons and M secondary weapons in CSGO. You can be only choose one Main weapon and one secondary weapon. For each weapon, it has a composite score S.The higher the composite score of the weapon is and the better for you.Also each weapon have K performance evaluations x[1], x[2], ..., x[k]. (range, firing rate, recoil, weight ...)So you shold consider the cooperation of your weapons, you want both weapons that has
.
[How to use]
First, copyTaskbarNotifier. csGo to your project directory.
Add using CustomUIControls at the top of your code;
Add a member variable in your class: TaskbarNotifier taskbarNotifier;
Add taskbarNotifier = new TaskbarNotifier () in your class constructor ();TaskbarNotifier. SetBackgroundBitmap ("skin.bmp ",Color. FromArgb (255 ));TaskbarNotifier. SetCloseBitmap ("close.bmp ",Color. FromArgb (255, 0, 255), new Point (127,8 ));TaskbarN
scale, that is, the scale when the page is loaded for the first time.
Maximum-scale: the maximum scale that users can scale.
Minimum-scale: minimum scale that allows users to scale.
User-scalable: whether the user can manually scale.
Iii. Questions about viewport:
Viewport is not only unique in ios, but also has viewport on android and winphone. They solve the same problem, that is, directly resetting the resolution between the physical size and the browser through
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.