<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll" 
android:orientation="vertical" 
android:background="#ff000000"
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:gravity="bottom">


<Button android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="test"/></LinearLayout>  

解决方案 »

  1.   

    控件多了还可以设置layout_weight,查下sdk doc吧
      

  2.   

    恩 , 直接给包含Button控件的LinearLayout设置android:gravity="button"属性就行了。
    图片覆盖是什么意思啊?你设置background背景它覆盖不了的啊
      

  3.   

    一个界面一张图片二个按钮,图片不能把按钮给覆盖了 Android自带的Button会在界面上方出现,我想把它弄下来 
      

  4.   

    你的图片用来设置背景图片还是用<ImageView>控件来显示?
    设置 Button属性 android:layout_gravity="bottom" 应该可以!
      

  5.   

    貌似还有一个android:layout_gravity  可以研究研究
      

  6.   

    如果能只是如此的话,楼主你可以直接将其你要显示的图片放到你的父布局作为背景来显示呀,如,
    <LinearLayout background="@drawble/xxx"></LinearLayout>
    然后你的button可以通过android:layout_gravity="bottom"来实现呀
      

  7.   

    呵呵
    谢谢各位大侠
    解决了
    用的ButtonBar样式就可以了