每一只菜鸟都能飞天,站在巅峰傲视群雄
第一章:符号体系
1.1 核心词:
w1-LinearLayout -先(线)划分一个人的性别,再布置出局的人
line-线
ar-一个人 的性别
lay-放置,布置
out-出局
w2-orientation-
神找不到欧日俄的方向,这是个难题
orie-欧日俄
nt-难题
ation-神
w3-vertical-我睡(垂)醒直接去听课
ver-我
ti-听
cal-课
w4-horizontal-对面很横的情况下,红日总是投降
hori-红日
zon-总是
tol-投
1.2 核心概念
android:orientation
属性指定布局方向
第二章 : 序斩
s1-选择Activity布局为LinearLayout
s2-选择orientation为 vertical or horizontol
s3-拖拽EditText跟Button控件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/to" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/subject" />
<EditText
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="top"
android:hint="@string/message" />
<Button
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/send" />
</LinearLayout>
第三章 : 练习
线性布局嵌套 外围 vertical 内部 horizontol 各1个edittext 1个button