我的Activity 继承了ListActivity,想在屏幕的底部加一个按钮,这个按钮要固定的不动,不会随ListView 滚动。如何实现?
解决方案 »
- 关于Android游戏嵌入广告上传不了市场的问题
- 请高人解释下,TestCase 是一个接口,为什么AndroidTestCase类用extends 而不是用 implements 呢?
- 开发android该如何调试
- android 读取SIM卡上联系人的相关内容
- 这个视图中的坐标怎么看呢?
- 虚拟机建目录的问题
- 做类似于UC桌面的应用,如果采用android开发主要需要定义什么类型呢?
- android sharedUserId INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
- 如何在values文件夹里的strings.xml定义属性?
- 开发一款安卓APP,客户端既要实现xmpp聊天,又要实现Http上网 服务端应该怎么设计
- 请问一个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>