-
原因是refresh时没有通知adapter删除数据,导致adapter更新数据集不一致
`Inconsistency detected. Invalid item position 10(offset:10).state:23 `
在mAdapter.refresh(dataList);之前通知adapter删除数据mAdapter.notifyItemRangeRemoved(0,mA…
-
当ItemDecoration 的分割间距 比较大时,会出现了stickyHeader draw不执行, 导致的现象是:滑动的时候出现闪烁
-
这个主要是由于isRecyclerViewTop此方法做判断时由于一些情况下顶部距离可能不为0时导致滑动可能不会触发向下滑动 所以需要固定配置,因人而异配置方法可能不同我的配置方法是:
加一个顶部偏移值
先修改这个HeaderScrollHelper类下的方法:
```
/**
* 顶部偏移值,主要是给isRecyclerViewTop此方法做判断时由于一些情况下顶…
-
* Android device: Google Pixel 2 XL
* Android OS version: 10
* Google Play Services version: 18.1.0
* Firebase/Play Services SDK version: 21.5.0
* FirebaseUI version: 6.3.0
####…
-
Hi,
when adding an item decoration like a simple line and expanding a parent by clicking it the item decoration does not get updated. It seems that the child item also gets an item decoration which i…
-
RT,我项目中要实现类似微信联系人那种有悬浮头列表的功能,但是悬浮头的标题内容不是单一的拼音字母,涉及到不同颜色的字体,还有一些动态的数据。再此请教博主,有什么好的实现方法么
-
怎么给头部添加一张imageview
-
How can I increase the spacing between two cards ?
-
```kotlin
@EpoxyModelClass
open class QuestionTrueFalseModelGroup(activity: MainActivity, callback : QuestionCallback,
question: QuestionItem, color : Int) :
…
-