We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbbd675 commit 9b80684Copy full SHA for 9b80684
library/src/main/java/com/chad/library/adapter/base/BaseQuickAdapter.java
@@ -444,7 +444,14 @@ public void setDuration(int duration) {
444
mDuration = duration;
445
}
446
447
-
+ /**
448
+ * If you have added headeview, the notification view refreshes.
449
+ * Do not need to care about the number of headview, only need to pass in the position of the final view
450
+ * @param position
451
+ */
452
+ public final void refreshNotifyItemChanged(int position) {
453
+ notifyItemChanged(position + getHeaderLayoutCount());
454
+ }
455
/**
456
* Same as QuickAdapter#QuickAdapter(Context,int) but with
457
* some initialization data.
0 commit comments