This issue goes on to share the aesthetic design of Android.
1.3 Light and shadows optics and shadows
1.3.1 Light
In the context of material design, we use virtual light to illuminate the UI interface. The main light produces a sharp, directional shadow. The background light produces scattered, soft shadows at various angles, which we call backlighting shadows.
Shadows generated by the main light
Shadow generated by background light
1.3.2 Light Source
In the design of Android and iOS, the shadow is generated because of the material plane at different elevation positions (z-axis), which is generated when the light is obscured. Unlike web products, the shadow of a Web product is just a shadow effect on the y-axis.
We combine the shadow effect with direct light + scattered light.
1.3.2 Shadow
Shadows can help us find the depth of a material component, the direction of motion, and the edge of the surface. The shadow of a surface is determined by his own elevation and the relationship between him and other planes.
Application of Shadows
First, in the same product, the elevation and corresponding shadow of the corresponding relationship, should be consistent.
Then the higher the elevation value (the closer to the user's relative position), the greater the shadow range is generated.
In our interface design, if we do not use the shadow element, then all of our interfaces are moved by default at an elevation.
2. layout Layouts
2.1 Understanding Layout Design: We use uniform elements and spacing to make our layout design consistent across different platforms and environments, as well as screen sizes.
2.1.1 Use of layouts
A. Predictability
The UI interface should be a straightforward and predictable layout (a unified UI area and the way space is organized)
B. Consistency
Layout, we should use a consistent grid, marking and filling form
C. Response
For input from the user, device, and screen elements, the layout needs to be adaptable and feedback.
2.1.2 Structure
In the layout design, each component should visually appear to be balanced. In general, we use a 8DP grid to the smallest seat of a unit of measure, for the logo of such a special small component, we can generally use 4DP grid.
2.1.2 Pixel Density
The PD and resolution of the screen are different for different platforms and devices. For different devices, we can use this flexible way to achieve the best visual rendering effect.
Calculate PD
First, the number of pixels in the range of 1-inch headings is called pixel density. High-density screens, of course, have more pixels in a fixed size than low-density screens. So a fixed pixel point picture, on a high-precision screen, will show a smaller visual effect.
The independence of density
The independence of density means that although the pixel density of the screen is different, the icon still shows the uniform size. Effects such as.
About the PD on Android
When developing a Android app, use DP to display elements uniformly in screens with different densities. A DP is equal to one physical pixel on a screens with a density of 160.
When we develop an Android app, we use DP to make sure that our elements are uniformly displayed on different density screens. The size of the absolute value of a DP equals dpi/160
DP = (width in pixels *)/screen density
|
Screen physical width |
Screen density |
Screen width in pixels |
Screen width in DPS |
|
1.5 in |
120 |
+ px |
dp |
|
1.5 in |
160 |
px |
|
1.5 in |
240 |
px |
For text messages We generally use scalable pixels (SP), where users can adjust the font to control the display size of text messages.
PD in IOS
Logical resolution
iOS devices are controlled by the logical resolution of the display density, they come to measure not a point inside the unit, for example, if you now design an element for iphone x, you may choose a logical resolution of the size of 375 * 812 points. Then, after this is given, the graphics processing hardware will automatically populate this component into a 1125 * 2436 screen.
Fundamentals of Android Aesthetic design <3>