mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-17 04:31:16 +08:00
invalidate view for drawable state.
This commit is contained in:
@@ -240,6 +240,7 @@ public class QMUIRVDraggableScrollBar extends RecyclerView.ItemDecoration {
|
||||
}
|
||||
if (mRecyclerView != null) {
|
||||
mRecyclerView.removeCallbacks(mFadeScrollBarAction);
|
||||
mRecyclerView.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,6 +252,9 @@ public class QMUIRVDraggableScrollBar extends RecyclerView.ItemDecoration {
|
||||
if (mCallback != null) {
|
||||
mCallback.onDragEnd();
|
||||
}
|
||||
if(mRecyclerView != null){
|
||||
mRecyclerView.invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
private void onDragging(RecyclerView recyclerView, Drawable drawable, int x, int y) {
|
||||
|
||||
Reference in New Issue
Block a user