修改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>

这是结果

更多相关文章

  1. Android(安卓)- SwitchButton开关按钮
  2. Android(安卓)获取系统自带相机的照片
  3. 弹出NumberPicker窗口,修改字体大小
  4. android 如何利用手势放大和缩小一个图片?
  5. 倒计时按钮
  6. Android(安卓)Calendar的运用
  7. Ubuntu 10.04编译Android(安卓)2.2 源代码
  8. ant build.xml yguard混淆JAVA
  9. RadioGroup控件(接口类监听事件)

随机推荐

  1. Android(安卓)4.4.2插入exFAT格式U盘识别
  2. 冰淇淋三明治 (Android(安卓)4.0)介绍
  3. Android(安卓)屏蔽Power键 Home键
  4. 开发者必看|Android(安卓)8.0 新特性及开
  5. android内存优化
  6. 【23】Android(安卓)应用程序入口探究
  7. 友坚4412开发板Android振动器系统构架的
  8. android 在init.rc中配置socket及其使用
  9. Android(安卓)设备root 原理及方法
  10. Android学习笔记(8) - GridView与ImageVi