0
我有一个布局,在其他两个布局分割:“标题”的LinearLayout和“内容”的RelativeLayout。滚动列表视图,而不是他的项目
在内容布局中,我有一个ListView,当用户滚动时需要增长,并在标题布局后面隐藏这个相同的ListView。 基本上,我需要的是这样的:
什么会做这样的事情最好的形式给出?这是我的layout.xml现在:
<LinearLayout
android:id="@+id/layout_full"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background_base"
android:fitsSystemWindows="true"
android:orientation="vertical"
android:weightSum="1"
tools:context=".app.Main">
<!-- Header -->
<LinearLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight=".55"
android:background="@drawable/background_header_small"
android:gravity="center_horizontal">
</LinearLayout>
<!-- Content -->
<RelativeLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight=".45">
<ListView
android:id="@+id/listview_full"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/text_add"
android:layout_alignEnd="@+id/text_add"
android:layout_alignStart="@+id/text_add"
android:divider="@null"
android:dividerHeight="0dp"
android:showDividers="none"
android:layout_marginBottom="10dp"
android:footerDividersEnabled="false"
android:layout_alignParentTop="true"
android:layout_marginTop="20dp" />
</RelativeLayout>
</LinearLayout>
我可以以某种方式删除的ListView的电梯部件,然后滚动ListView控件,而不是ListView控件里面的物品?