lcodecorex / TwinklingRefreshLayout

RefreshLayout that support for OverScroll and better than iOS. 支持下拉刷新和上拉加载的RefreshLayout,自带越界回弹效果,支持RecyclerView,AbsListView,ScrollView,WebView
Apache License 2.0
3.99k stars 672 forks source link

1.05版本,我的头部和底部加载布局显示位置在RecycleView中间而不是顶部和底部 #115

Open kenLaidiss opened 7 years ago

kenLaidiss commented 7 years ago

项目中其余页面都可以正常显示, 该页布局如下: <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <RelativeLayout
                android:id="@+id/line1"
                style="@style/newDividerHalf" />

            <com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout
                android:id="@+id/refresh_layout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                app:tr_bottom_height="48dp"
                app:tr_head_height="48dp"
                app:tr_wave_height="180dp">

                <android.support.v7.widget.RecyclerView
                    android:id="@+id/recyclerView_record"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />
            </com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout>
        </LinearLayout>

        <LinearLayout
            android:id="@+id/girdLayout"
            android:layout_width="match_parent"
            android:layout_height="300dp"
            android:orientation="vertical"
            android:visibility="gone">

            <RelativeLayout
                android:id="@+id/line"
                style="@style/newDividerHalf" />

            <android.support.v7.widget.RecyclerView
                android:id="@+id/recyclerView_depart"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />

            <RelativeLayout style="@style/newDividerHalf" />
        </LinearLayout>

    </FrameLayout>

请问如何设置?