用RelativeLayout吧,设置Spinner  android:layout_alignParentBottom="true"

解决方案 »

  1.   

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="horizontal" android:layout_width="fill_parent"
                
                android:layout_height="wrap_content" android:layout_marginTop="8.0dip">
                <Button android:text="@string/reset" android:id="@+id/btnReset"
                android:layout_weight="1"
                    android:layout_width="fill_parent" android:layout_height="wrap_content"></Button>
                <Button android:text="@string/start" android:id="@+id/btnBegin"
                android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" ></Button>
            </LinearLayout>
            <Spinner android:id="@+id/spinner" android:layout_width="fill_parent"
             android:layout_height="wrap_content" android:layout_gravity="bottom"/>    
    你LinearLayout设置android:layout_height="wrap_content",怎么会靠底部呢?
      

  2.   

    不好意思,和LinearLayout没关系,没看见spinner在LinearLayout外面
      

  3.   

    看了下,外层的Layout你写的是android:layout_gravity="center_horizontal",当然,上面的并没有撑满,你可以设置下权重,或干错使用相对布局好了
      

  4.   

    我会选择相对布局
    android:layout_alignParentBottom="true"