怎样在ListActivity 的底部加一个按钮? 我的Activity 继承了ListActivity,想在屏幕的底部加一个按钮,这个按钮要固定的不动,不会随ListView 滚动。如何实现? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_alignParentBottom="true" android:id="@+id/bottom"> <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="OK" android:id="@+id/ok"/> <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:text="Exit" android:id="@+id/exit"/> </LinearLayout> <ListView android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@id/bottom" android:id="@id/android:list"/></RelativeLayout> http://androidpageablelistview.googlecode.com/svn/trunk/ android 端使用zxing 扫描sdcard中的二维码图片的方法是什么? apk下载到手机内存,安装时解析出错 HTTP 修改头 手机P2P软件研究 请问下android 系统下怎么mount/unmount SD 如何获取并关闭一个由Intent action方式启动的activity 新手求解 tween动画Animation怎么用在一个继承View的类里的某个单独bitmap上? android与后台服务器的前后端通信 Android ijkplayer库如何实现外挂字幕功能 请问一个email转发的问题 android 中如何加入图片
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:id="@+id/bottom">
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="OK"
android:id="@+id/ok"/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Exit"
android:id="@+id/exit"/>
</LinearLayout>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@id/bottom"
android:id="@id/android:list"/>
</RelativeLayout>