Android layout has a FrameLayout above and a Gridview below. How to make Gridview scroll full screen when scrolling?

  android, question

1. The 1,Android layout has a FrameLayout above and a Gridview below. How to make the Gridview scroll full screen when scrolling?

2. Layout code

<?  xml version="1.0" encoding="UTF-8"?  >
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 Android:id="@ plus id/anchor "
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:background="@color/grey_white"
 android:orientation="vertical" >
 
 <LinearLayout
 android:layout_width="fill_parent"
 android:layout_height="45.0dip"
 android:background="@drawable/top_bg" >
 
 <TextView
 Android:id="@ plus id/activity_title "
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:gravity="center"
 Android:text= "latest release"
 android:textColor="@color/white"
 android:textSize="17.0dip" />
 </LinearLayout>
 
 <FrameLayout
 Android:id="@ plus id/linearlayout_images_slide "
 android:layout_width="match_parent"
 android:layout_height="wrap_content" >
 
 <android.support.v4.view.ViewPager
 Android:id="@ plus id/image_slide_page "
 android:layout_width="fill_parent"
 android:layout_height="150dip"
 android:focusable="true" />
 
 <RelativeLayout
 Android:id="@ plus id/layout_title_text "
 style="@style/Transparent"
 android:layout_width="match_parent"
 android:layout_height="30dp"
 android:layout_gravity="bottom"
 android:background="#55000000" >
 
 <RelativeLayout
 Android:id="@ plus id/layout_bar_image "
 android:layout_width="match_parent"
 android:layout_height="1dip"
 android:layout_alignParentLeft="true"
 android:layout_alignParentTop="true"
 android:background="@drawable/image_page_bg" />
 
 <RelativeLayout
 android:layout_width="wrap_content"
 android:layout_height="match_parent"
 android:layout_alignParentLeft="true"
 android:layout_alignParentTop="true"
 android:orientation="horizontal" >
 
 <TextView
 Android:id="@ plus id/tvSlideTitle "
 android:layout_width="wrap_content"
 android:layout_height="match_parent"
 android:layout_marginLeft="10dp"
 android:gravity="center_vertical"
 android:textColor="@android:color/white"
 android:textSize="12sp" />
 
 <LinearLayout
 Android:id="@ plus id/layout_circle_images "
 android:layout_width="wrap_content"
 android:layout_height="15sp"
 android:layout_alignParentRight="true"
 android:layout_marginRight="10dp"
 android:layout_marginTop="10dp"
 android:layout_toRightOf="@id/tvSlideTitle"
 android:gravity="right|center"
 android:orientation="horizontal" />
 </RelativeLayout>
 </RelativeLayout>
 </FrameLayout>
 
 <GridView
 Android:id="@ plus id/anchor_view "
 android:layout_width="fill_parent"
 android:layout_height="wrap_content"
 Android:layout_below="@ plus id/title_bar_text "
 android:layout_marginLeft="0dip"
 android:layout_marginRight="5dip"
 android:cacheColorHint="#00000000"
 android:columnWidth="2dip"
 android:listSelector="#00000000"
 android:numColumns="3" >
 </GridView>
 
 </LinearLayout>

3. Pictures
As shown in Figure 1, it is a picture without dragging. The following figure shows the dragging effect. The slide above will not move when dragging, so you can only drag a little distance below.

图片描述

图片描述

How can I drag the gridview up below? The slide above will also scroll upward.

Thank you for your answers, which were finally solved by adding a headview to gridview.

See this link for specific methods:http://blog.csdn.net/zhzhyang0313/articl …