CymChad / BaseRecyclerViewAdapterHelper

BRVAH:Powerful and flexible RecyclerAdapter
http://www.recyclerview.org/
MIT License
24.32k stars 5.16k forks source link

BaseItemDraggableAdapter 的子布局使用 wrap_content 时的问题 #2821

Closed protectedMan closed 5 years ago

protectedMan commented 5 years ago

使用最新demo修改,使用gridview实现一个3列的列表,当子布局高度为wrap_content时,会出现动态图所示的bug(列表在快速拖动时每个item的高度会变大),如果子布局高度是固定值则不会出现这种情况。 子布局代码以及问题动态图演示如下: QQ20190723-111154

image

protectedMan commented 5 years ago

每次高度的变化量跟ItemDecoration时设置的分割线高度有关, image

CymChad commented 5 years ago

嗯,多谢指出demo问题,我们这边会进行修改。 这个问题是属于布局层面的问题和adapter无关,样式是由开发者决策的。