我有以下布局的XML布局与列表
<?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>
一个listactivity现在,我想补充的时候滚动列表是停留在地方列表上方的按钮。 有没有可能?
在此先感谢 罗兰
,如果仅在这么简单,这是行不通的。现在我只看到按钮,没有列表。 – Roland 2011-01-20 19:39:24