如何把单个view放到屏幕的底端 用RelativeLayout吧,设置Spinner android:layout_alignParentBottom="true" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <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",怎么会靠底部呢? 不好意思,和LinearLayout没关系,没看见spinner在LinearLayout外面 看了下,外层的Layout你写的是android:layout_gravity="center_horizontal",当然,上面的并没有撑满,你可以设置下权重,或干错使用相对布局好了 我会选择相对布局android:layout_alignParentBottom="true" android开机铃声如何实现? android Binder具体是干什么用的? 为什么getIntent()出错,没有定义? 如何获取所有会自启动的程序 通过路径产生图片 请问Android软件开发应该如何学起? android手机的联网程序是否需要拨号? <转>手把手教你:技术小白如何上线百度轻应用 使用ksoap2调用webservice java.io.EOFException问题 LinearLayout中android:divider如何自定义边框颜色 获取手机位置 android2.0的程序移植到android1.5上图片变形
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",怎么会靠底部呢?
android:layout_alignParentBottom="true"