Layout
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Android]]
|单位|意义|h
|px(像素)|最基本的屏幕像素单位。|
|dp/dip(设备独立像素)|一种基于屏幕密度的抽象单位,不同...
|sp(可缩放像素)|主要用于字体大小,会根据用户的字体设置...
|in(英寸)|实际的长度单位。|
|mm(毫米)|实际的长度单位。|
|属性|用途|h
|android:layout_width="100dp" |固定100相对像素,dp相对...
|android:layout_marginTop="100dp"|顶部距离100像素|
|android:layout_toLeftOf="@id/xxx" |将控件的右边缘和给定I...
|android:layout_alignLeft="@id/xxx"|将控件的左边缘和给定I...
|android:layout_alignParentRight="true"|将控件的右边缘和...
|android:layout_above="@id/xxx"|将控件置于给定ID控件之上 |
|android:layout_below="@id/xxx"|将控件置于给定ID控件之下|
|android:layout_centerInParent="true"|将控件置于父控件的...
|android:layout_centerHorizontal="true"|将控件置于水平方...
|android:layout_centerVertical="true"|将控件置于垂直方向...
|android:layout_gravity="center"|LinearLayout子元素的特有...
終了行:
[[Android]]
|单位|意义|h
|px(像素)|最基本的屏幕像素单位。|
|dp/dip(设备独立像素)|一种基于屏幕密度的抽象单位,不同...
|sp(可缩放像素)|主要用于字体大小,会根据用户的字体设置...
|in(英寸)|实际的长度单位。|
|mm(毫米)|实际的长度单位。|
|属性|用途|h
|android:layout_width="100dp" |固定100相对像素,dp相对...
|android:layout_marginTop="100dp"|顶部距离100像素|
|android:layout_toLeftOf="@id/xxx" |将控件的右边缘和给定I...
|android:layout_alignLeft="@id/xxx"|将控件的左边缘和给定I...
|android:layout_alignParentRight="true"|将控件的右边缘和...
|android:layout_above="@id/xxx"|将控件置于给定ID控件之上 |
|android:layout_below="@id/xxx"|将控件置于给定ID控件之下|
|android:layout_centerInParent="true"|将控件置于父控件的...
|android:layout_centerHorizontal="true"|将控件置于水平方...
|android:layout_centerVertical="true"|将控件置于垂直方向...
|android:layout_gravity="center"|LinearLayout子元素的特有...
ページ名: