How to parse Android style
This article introduces you how to analyze Android style, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.
Layout is fundamental, both in WEB design and mobile client design. If the game is not laid out in the first place, no matter how exquisite your details are, you still have to restructure in the end. Compared with the layout in the traditional WEB design, there are many Android platforms, but the layer layout designed by WEB has a new name in Android, which is called frame layout. Layout is not the key point in this article, because it is almost the same as the concept in WEB, so it goes through it at once.
To tell you the truth, I still like the style naming convention in WEB design, which is simple and easy to use. the most important thing is that the WEB style is easy to manage, unlike the Android style file is divided into very fine, looks more messy. If you have studied the design of SDK, you will find that the style of a button is divided into two dozen style files, such as btn_default.xml,btn_default_small.xml.
Next we imitate the design of SDK, customize a button style file btn_default.xml, which contains three different states: non-focus, focus, and pressed.
1 23 4 5 9 10 13 14 16 17 22 23 24 25 26 27 28 29 33 34 37 38 40 41 46 47 48 49 50 51 52 53 57 58 61 62 64 65 70 71 72 73 74 75