AndroidUI Optimization
1. layout componentization, use merge and include reuse whenever possible
2. Use styles to reuse style definitions
3. the pop-up control of the soft keyboard should not overwrite the input box
4. Placement of numbers, letters, and Chinese characters: All digits and letters are divided into different types. In most cases, because our input is half-width, the placeholder values of letters and numbers cannot be determined. However, once fully divided, the placeholder values of numbers and letters are the same as those of a Chinese character, in this way, the layout problem caused by placeholder can be avoided.
5. English Document Layout: When textview is automatically changed, the word integrity should be maintained. The solution is to calculate the string length, and then manually set the number of letters displayed in each row with '\ n' added'
6. Use RelativeLayout for complex la s
7. adaptive screen; Use dp to replace pix
8. Use android: layout_weight or TableLayout to create an equals Layout
9. Use animation-list to create an animation
From LuoXianXiong, your partner