Document directory
- Flexibility
- Optimize Layout
- Global benefits
- Statement
- Communication
- Boundary
This section describes how to build an application that runs on any device.
Device and display
Now there are more than one million Android devices, including mobile phones, tablets, and other devices. They come from different manufacturers and have different screen resolutions. You can create an application that is compatible and runs on it.
Flexibility
Stretch or compress your layout to adapt to different heights and widths.
Optimize Layout
To avoid wasting extra space on large screen devices, use the navigation bar and view combination to achieve different effects.
Global benefits
Use different resource files for different devices for better display.
Policy
Have you figured out how to design an application that supports multiple screen resolutions? One is to design only the mdpi resolution so that it can automatically zoom in or out to adapt to the screen. The other is to design only the highest resolution, and then scale it on a low-resolution device.
Topic
Holo light)
Setting dark theme (holo dark)
Use a light-colored theme and a dark titlebar for talk.
A topic is a mechanism that allows Android apps or activities to maintain a consistent style. You can specify the following styles: color, height, fill, and font size. The theme style can make your applications look more harmonious. From android4.0, the system provides three theme sets for you:
- Holo light
- Holo dark
- Holo light with dark action bars
We recommend that you use the theme provided by the system. If you need a custom theme, make custom modifications based on the existing theme of the system.
Touch feedback
Use color and light to respond to touch, enhance the effect of the action, and tell the user which controls can be used. When you touch an area in your application, provide a clear response to let the user know that the object has been clicked and that your application is listening.
Statement
Communication
Your response results make it easier for users to understand the operation intent. For example, moving the thumbnail left or right in a recent application makes it transparent, this helps users understand that they are about to remove the task.
Boundary
When the user slides to the end of the control, a boundary display is required to show that the user has reached the boundary.