-
-
Notifications
You must be signed in to change notification settings - Fork 66
悬停效果
angcyo edited this page Nov 10, 2019
·
1 revision
悬停效果的实现, 使用的是我另一个库 HoverItemDecoration , 是基于RecyclerView.ItemDecoration 实现的, 绝对轻量.
| 正常 | 悬停中 | 悬停上推 |
|---|---|---|
![]() |
![]() |
![]() |
HoverItemDecoration().attachToRecyclerView(recyclerView)在需要悬停的Item设置itemIsHover=true即可.
item.itemIsHover=true
默认情况itemIsGroupHead=true时, 会自动设置itemIsHover=true
可以通过hoverItemDecoration.overAdapterPosition变量, 获取当前处于悬停状态的Item位置.


