【发布时间】:2011-01-21 04:09:43
【问题描述】:
我有一个带有以下 layout-xml 的 listactivity
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:myapp="http://schemas.android.com/apk/res/se.javalia.myDrinks"
>
<Button android:id="@+id/saveButton"
android:text="test test"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/main_no_items" />
</LinearLayout>
现在,我想在列表上方添加一个按钮,该按钮在列表滚动时保持不变。 有可能吗?
提前致谢 罗兰
【问题讨论】:
标签: android layout button listactivity