リストビューに読み込まれた要素のカウンターであるフッタービューを追加したいと思います。フッタービューをどこに置くべきか知りたいです。私はすでにリストビューに1つ持っていますが、私が持っているもののように一番下に到達したときではなく、常に表示したいので、そこに置いてはいけないと思います。
コード:
リストビュー:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ListView
android:id="@+id/lista"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stackFromBottom="false"
android:transcriptMode="normal"
/>
</LinearLayout>
タブのコード:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainTabActivity" >
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|fill_vertical|fill_horizontal" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/tab1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/lista"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stackFromBottom="false"
android:transcriptMode="normal"
/>
</LinearLayout>
<LinearLayout
android:id="b"
</LinearLayout>
<LinearLayout
android:id="c"
</LinearLayout>
<LinearLayout
android:id="d"
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
私はこれを持っています: http://imageshack.us/photo/my-images/23/6a3t.jpg/
そして、私はこれが欲しいです: http://imageshack.us/photo/my-images/809/kesm.jpg/