Closed Narinc closed 5 years ago
Setting wrap_content on the RecyclerView is generally a bad idea because it can't compute it's size until its items are instantiated. When ExpandableLayout is collapsed its children are set to visibility=gone for performance purposes, which causes the RV to not layout its own items.
Setting a fixed height on the RV should fix the issue.
Thanks. You're right!!
When both expandablelayout and recyclerview are on the same screen, recyclerview can't init. After collapse/expand the layout, Updating ui when expandablelayout is expanded.
`<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools">
`