[Android] interface Division

1. Unified interface management

1.1 use an activity to manage all the interfaces of the application

1.1.1 understand the relationship among activity, window and view

1.1.2 avoid problems caused by too many activities,

For example: completely quit the application, frequently change the list file, etc

Unify the interface style and reduce the learning cost of users

2. Interface Division

2.1 display the effect drawing and preliminarily divide the interface

2.2 interface management implementation

2.2.1 extraction Title Management

2.2.2 bottom navigation management

2.2.3 extract intermediate content management and establish content switching mechanism

2.2.4 improve the user prompt mechanism

2.3 preparation

2.3.1 import picture, text and other resource files

You can use the project as a libirary library

2.3.2 description of naming rules

Prevent name conflicts

2.4 setting layout file for activity

2.4.1 create three kinds of Title part layout and two kinds of navigation part layout

2.4.2 use < include / > in the main layout file to include the layout file

2.5 screen adaptation

2.5.1 width adaptation

2.5.2 height adaptation

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>