android-cn / android-discuss

Android 问题交流讨论坛, 微信公众号:codekk, 网站:
https://github.com/android-cn/android-discuss/issues
Apache License 2.0
4.08k stars 535 forks source link

Activity嵌套ViewPage嵌套Fragment嵌套BGARefreshLayout不显示上拉加载更多视图 #331

Open aylgyfqc opened 8 years ago

aylgyfqc commented 8 years ago

Activity嵌套ViewPage嵌套Fragment嵌套BGARefreshLayout不显示上拉加载更多视图,我看了你的测试,代码差不多但是就是不显示,我真的想不明白

aylgyfqc commented 8 years ago

activity布局 <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:orientation="vertical" >

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <android.support.v4.view.ViewPager
        android:id="@+id/mViewPager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/bottomLayout" />

    <include
        android:id="@+id/bottomLayout"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        layout="@layout/activity_bottom_tab" />
</RelativeLayout>

aylgyfqc commented 8 years ago

fragment布局 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ECECEC" android:orientation="vertical" >

<LinearLayout
    android:id="@+id/title"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@color/appbg"
    android:orientation="vertical" >

    <View
        android:layout_width="wrap_content"
        android:layout_height="20dip"
        android:background="@color/title_bg" />
</LinearLayout>

<com.howpay.pinme.refreshlayout.BGARefreshLayout
    android:id="@+id/define_bga_refresh"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <android.support.v7.widget.RecyclerView
        android:id="@+id/define_bga_recycler"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:scrollbars="none" >
    </android.support.v7.widget.RecyclerView>
</com.howpay.pinme.refreshlayout.BGARefreshLayout>

addcn commented 8 years ago

之前看讨论过好像跟使用的style有关系的,你试一下使用它demo的style看一下

70kg commented 8 years ago

这个你可以去作者下面提issues试试