I learned that the structure of android developing is like a nesting style, which looks very much like a hamburger.
The most outer code line is the syntax, which are mostly closed with brackets, like:
<LinearLayout>
...
</LinearLayout>
The second most outer code line is the type of the View group, like:
<TextView
.../>
Then it comes the general coding section which has all the settings, like:
android.text="Hello World!"
android.textSize="40sp"
All together will become like:
<LinearLayout>
<TextView
android.text="Hello World!"
android.textSize="40sp"/>
</LinearLayout>
Doesn't it look like a hamburger?
The most outer code line is the syntax, which are mostly closed with brackets, like:
<LinearLayout>
...
</LinearLayout>
The second most outer code line is the type of the View group, like:
<TextView
.../>
Then it comes the general coding section which has all the settings, like:
android.text="Hello World!"
android.textSize="40sp"
All together will become like:
<LinearLayout>
<TextView
android.text="Hello World!"
android.textSize="40sp"/>
</LinearLayout>
Doesn't it look like a hamburger?
Comments
Post a Comment