Android:线性布局(LinearFrame)例子
16lz
2021-01-26
修改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(安卓)- SwitchButton开关按钮
- Android(安卓)获取系统自带相机的照片
- 弹出NumberPicker窗口,修改字体大小
- android 如何利用手势放大和缩小一个图片?
- 倒计时按钮
- Android(安卓)Calendar的运用
- Ubuntu 10.04编译Android(安卓)2.2 源代码
- ant build.xml yguard混淆JAVA
- RadioGroup控件(接口类监听事件)