0
点赞
收藏
分享

微信扫一扫

Android:线性布局(LinearFrame)例子


修改layout中xml为

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
>
<Button
android:text="按钮 1"
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<Button
android:text="按钮 2"
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<Button
android:text="按钮 3"
android:id="@+id/button3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<Button
android:text="按钮 4"
android:id="@+id/button4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>


</LinearLayout>


这是结果

Android:线性布局(LinearFrame)例子_android

举报

相关推荐

0 条评论