When using `setHasFixedSize() in an RecyclerView, wrap_content cannot be used as a value for size in the scrolling direction. [InvalidSetHasFixedSize from androidx.recyclerview]

如果RecyclerView是wrap_content,需要去掉RecyclerView.setHasFixedSize(true)或设置为RecyclerView.setHasFixedSize(false)

posted on 2024-09-02 15:04  陈德彪  阅读(39)  评论(0)    收藏  举报

导航