解决方案 »

  1.   


    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
        
        <Button 
            android:id="@+id/bt1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="按钮左"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            />
        
        <Button 
            android:id="@+id/bt2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="按钮右"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            />
        
        <ImageView 
            android:id="@+id/iv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@id/bt1"
            /></RelativeLayout>
    看在分数的份上的
      

  2.   

    relativeLayout
    imageview width和height都fill_parent
    linearlayout/relativelayout中放两个按钮,一个left,一个right。这个layout居于parent Bottom,搞定。
      

  3.   


    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >    <ImageView
            android:id="@+id/imageView1"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="40" />    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal" >        <Button
                android:id="@+id/button1"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:text="Button" />        <Button
                android:id="@+id/button2"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:text="Button" />    </LinearLayout></LinearLayout>
      

  4.   

    这样的布局方法很多 楼上的都给出来了写布局时  先考虑你想要的效果 然后再根据你的实际需求来选用布局 充分的利用RelativeLayout 和 LinearLayout
    这两个混搭使用可以布局出你想要的效果