私のアプリケーションでは、ヘッダー(上部)とフッター(下部)とがあります。私はHEADER & FOOTERを固定し、スクロールしません。しかし、それらの間に配置されたListView
は、FOOTERと重複するいくつかのコンポーネントを持っています。私は何とか私のCustomListView
のそれらのコンポーネントがフッターに重ならないようにしたい。これを行う方法はありますか?リストビューにlayout_above = "@のID/options_bar":Android CustomListView他のコンポーネントをオーバーラップしています
私のレイアウトのコードは
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<!-- Title Bar -->
<include
android:id="@+id/title_bar"
android:layout_alignParentTop="true"
layout="@layout/title_bar" />
<!-- Settings Components list -->
<ListView
android:id="@+id/custom_items_list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/title_bar"
android:layout_weight="1" >
</ListView>
<!-- Options Bar -->
<include
android:id="@+id/options_bar"
style="@style/btn_options_bar"
android:layout_alignParentBottom="true"
layout="@layout/options_bar" />
</RelativeLayout>
IS-XMLを更新し、興味を持っている人のために
<include>
後に再度
layout_height
とlayout_weight
を設定するために必要な(私はなぜ知らないが)、でした。しかし、この場合、ListViewも表示されません。 Logcatにもエラーはありません。 私も 'android:layout:below =" @ id/custom_item_list "'を試しましたが、運はありません。 – Rajkiran