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

在fragment中使用ExpandableRecyclerView时,无法展开。 #48

Open
qianmang2 opened this issue Nov 18, 2023 · 4 comments
Open

在fragment中使用ExpandableRecyclerView时,无法展开。 #48

qianmang2 opened this issue Nov 18, 2023 · 4 comments

Comments

@qianmang2
Copy link

No description provided.

@qianmang2
Copy link
Author

device-2023-11-19-102739.mp4

@qianmang2
Copy link
Author

在fragment中使用ExpandableRecyclerView时,只有一个分组时显示异常

@Xigong93
Copy link
Owner

是不是高度没有设置MatchParent呢?

@qianmang2
Copy link
Author

错怪作者了,看了源码,看到StickyHeaderRecyclerViewContainer 将ExpandableRecyclerView包起来了,于是我在fragment中也这样做,抱着试一试的心态,结果解决动画异常和分组的item不显示问题,方法如下:
`
<pokercc.android.expandablerecyclerview.StickyHeaderRecyclerViewContainer xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

<pokercc.android.expandablerecyclerview.ExpandableRecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</pokercc.android.expandablerecyclerview.StickyHeaderRecyclerViewContainer>`

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

2 participants