Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollView嵌套EasyRefrechLayout问题 #8

Closed
Janky-Young opened this issue Dec 26, 2016 · 12 comments
Closed

scrollView嵌套EasyRefrechLayout问题 #8

Janky-Young opened this issue Dec 26, 2016 · 12 comments

Comments

@Janky-Young
Copy link

scrollView嵌套EasyRefrechLayot时,easyRefrechLayout不显示了

@lucklygaj
Copy link
Contributor

是怎么个不显示法,能贴个代码么?感谢你的反馈

@micki-zhou
Copy link

同样遇到这个问题,

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

                 <com.ajguan.library.EasyRefreshLayout
                      android:id="@+id/er_load_more"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent">

                              <android.support.v7.widget.RecyclerView
                                android:id="@+id/rv_comment"
                               android:layout_width="match_parent"
                                android:layout_height="match_parent"
                               android:background="@color/bg_grey"
                                android:visibility="gone" />
        </com.ajguan.library.EasyRefreshLayout>
     </LinearLayout>

像这样的话,不仅easyRefreshLayout不显示了,连RecyclerView都不显示了。去掉easyRefreshLayout,一切正常。

@micki-zhou
Copy link

android:visibility="gone" 这个是我自己逻辑里有判断,不是因为这个不显示哈

@micki-zhou
Copy link

最外层还有个ScrollView,不知道为什么发出来就没了

@lucklygaj
Copy link
Contributor

感谢你的反馈,我现在看下

@lucklygaj
Copy link
Contributor


你设置成匹配父布局看下

@micki-zhou
Copy link

什么意思,不是很明白 @githubzaibao

@lucklygaj
Copy link
Contributor

已重现该问题,我先研究研究,解决了会及时联系你

@micki-zhou
Copy link

好的,谢谢 @githubzaibao

@gwwnha
Copy link

gwwnha commented Feb 6, 2017

不知掉这个问题解决了怎么样了,同样遇到了

@lucklygaj
Copy link
Contributor

有个方案解决了,但有瑕疵,还在coding

@lucklygaj
Copy link
Contributor

关于嵌套ScrollView,目前想到两种解决方法,一、将scrollView的android:layout_height="math_parent">
二、在EasyRefreshLayout的onMeasure方法中调用 super.onMeasure(widthMeasureSpec,传入指定的高度);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants