* It keeps items ordered using the {@link Callback#compare(Object, Object)} method and uses
@@ -490,7 +490,7 @@ public static abstract class Callback
- * For example, if you are using SortedList with a {@link android.support.v7.widget.RecyclerView.Adapter
+ * For example, if you are using SortedList with a {@link androidx.recyclerview.widget.RecyclerView.Adapter
* RecyclerView.Adapter}, you should
* return whether the items' visual representations are the same or not.
*
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutAdapter.java b/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutAdapter.java
index d80b065f..dcca68c3 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutAdapter.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutAdapter.java
@@ -24,8 +24,8 @@
package com.alibaba.android.vlayout;
-import android.support.annotation.NonNull;
-import android.support.v7.widget.RecyclerView;
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java b/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java
index 257d960c..eac5bbe1 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/VirtualLayoutManager.java
@@ -28,10 +28,11 @@
import android.graphics.Rect;
import android.os.Build;
import android.os.Trace;
-import android.support.annotation.NonNull;
-import android.support.annotation.Nullable;
-import android.support.v7.widget.OrientationHelper;
-import android.support.v7.widget.RecyclerView;
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+
+import androidx.recyclerview.widget.OrientationHelper;
+import androidx.recyclerview.widget.RecyclerView;
import android.util.AttributeSet;
import android.util.Log;
import android.util.Pair;
@@ -59,10 +60,10 @@
/**
- * A {@link android.support.v7.widget.RecyclerView.LayoutManager} implementation which provides
+ * A {@link androidx.recyclerview.widget.RecyclerView.LayoutManager} implementation which provides
* a virtual layout for actual views.
*
- * NOTE: it will change {@link android.support.v7.widget.RecyclerView.RecycledViewPool}
+ * NOTE: it will change {@link androidx.recyclerview.widget.RecyclerView.RecycledViewPool}
* for RecyclerView.
*
* @author villadora
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/InnerRecycledViewPool.java b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/InnerRecycledViewPool.java
index 1c9e5081..a3c0783e 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/InnerRecycledViewPool.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/InnerRecycledViewPool.java
@@ -24,7 +24,7 @@
package com.alibaba.android.vlayout.extend;
-import android.support.v7.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.util.SparseIntArray;
import android.view.View;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/PerformanceMonitor.java b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/PerformanceMonitor.java
index 7c4ec661..e70eb8d1 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/PerformanceMonitor.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/PerformanceMonitor.java
@@ -1,6 +1,6 @@
package com.alibaba.android.vlayout.extend;
-import android.support.annotation.Keep;
+import androidx.annotation.Keep;
import android.view.View;
/**
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java
index 6a248d42..8db65a56 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/extend/ViewLifeCycleHelper.java
@@ -1,7 +1,8 @@
package com.alibaba.android.vlayout.extend;
-import android.support.annotation.NonNull;
-import android.support.v4.util.ArrayMap;
+import androidx.annotation.NonNull;
+import androidx.collection.ArrayMap;
+
import android.view.View;
import com.alibaba.android.vlayout.VirtualLayoutManager;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/AbstractFullFillLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/AbstractFullFillLayoutHelper.java
index 208aaf76..886e429d 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/AbstractFullFillLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/AbstractFullFillLayoutHelper.java
@@ -25,9 +25,9 @@
package com.alibaba.android.vlayout.layout;
import android.graphics.Rect;
-import android.support.v7.widget.RecyclerView;
-import android.support.v7.widget.RecyclerView.Recycler;
-import android.support.v7.widget.RecyclerView.State;
+import androidx.recyclerview.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView.Recycler;
+import androidx.recyclerview.widget.RecyclerView.State;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/BaseLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/BaseLayoutHelper.java
index 13980db8..be5a6d88 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/BaseLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/BaseLayoutHelper.java
@@ -32,9 +32,9 @@
import com.alibaba.android.vlayout.VirtualLayoutManager.LayoutStateWrapper;
import android.graphics.Rect;
-import android.support.annotation.NonNull;
-import android.support.annotation.Nullable;
-import android.support.v7.widget.RecyclerView;
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.View;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/ColumnLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/ColumnLayoutHelper.java
index 573d3833..fb16c9c8 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/ColumnLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/ColumnLayoutHelper.java
@@ -31,7 +31,7 @@
import com.alibaba.android.vlayout.VirtualLayoutManager;
import android.graphics.Rect;
-import android.support.v7.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FixLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FixLayoutHelper.java
index 7942ca61..2a0d6df3 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FixLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FixLayoutHelper.java
@@ -30,7 +30,7 @@
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
-import android.support.v7.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.view.ViewPropertyAnimator;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FloatLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FloatLayoutHelper.java
index 8254faf8..d9c8aaf6 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FloatLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/FloatLayoutHelper.java
@@ -30,8 +30,8 @@
import android.animation.ObjectAnimator;
import android.graphics.Rect;
-import android.support.annotation.Nullable;
-import android.support.v7.widget.RecyclerView;
+import androidx.annotation.Nullable;
+import androidx.recyclerview.widget.RecyclerView;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/GridLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/GridLayoutHelper.java
index 1bb49446..94b500cd 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/GridLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/GridLayoutHelper.java
@@ -30,9 +30,8 @@
import com.alibaba.android.vlayout.VirtualLayoutManager.LayoutParams;
import com.alibaba.android.vlayout.VirtualLayoutManager.LayoutStateWrapper;
-import android.support.annotation.NonNull;
-import android.support.v7.widget.OrientationHelper;
-import android.support.v7.widget.RecyclerView;
+import androidx.annotation.NonNull;
+import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.util.SparseIntArray;
import android.view.View;
@@ -40,7 +39,7 @@
import java.util.Arrays;
-import static android.support.v7.widget.LinearLayoutManager.VERTICAL;
+import static androidx.recyclerview.widget.LinearLayoutManager.VERTICAL;
/**
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/LinearLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/LinearLayoutHelper.java
index b21f47c2..80a8b788 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/LinearLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/LinearLayoutHelper.java
@@ -30,12 +30,12 @@
import com.alibaba.android.vlayout.VirtualLayoutManager.AnchorInfoWrapper;
import com.alibaba.android.vlayout.VirtualLayoutManager.LayoutParams;
-import android.support.v7.widget.RecyclerView;
-import android.support.v7.widget.RecyclerView.State;
+import androidx.recyclerview.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView.State;
import android.util.Log;
import android.view.View;
-import static android.support.v7.widget.LinearLayoutManager.VERTICAL;
+import static androidx.recyclerview.widget.LinearLayoutManager.VERTICAL;
/**
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelper.java
index f6943687..b2d03f62 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelper.java
@@ -34,9 +34,9 @@
import com.alibaba.android.vlayout.VirtualLayoutManager.LayoutStateWrapper;
import android.graphics.Rect;
-import android.support.v7.widget.LinearLayoutManager;
-import android.support.v7.widget.RecyclerView;
-import android.support.v7.widget.RecyclerView.State;
+import androidx.recyclerview.widget.LinearLayoutManager;
+import androidx.recyclerview.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView.State;
import android.view.View;
import android.view.View.MeasureSpec;
import android.view.ViewGroup;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelperEx.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelperEx.java
index 03eea1a1..64e6cb3a 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelperEx.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/OnePlusNLayoutHelperEx.java
@@ -25,7 +25,7 @@
package com.alibaba.android.vlayout.layout;
import android.graphics.Rect;
-import android.support.v7.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.View.MeasureSpec;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeGridLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeGridLayoutHelper.java
index 9869032f..a3858a2b 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeGridLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeGridLayoutHelper.java
@@ -35,15 +35,15 @@
import com.alibaba.android.vlayout.layout.GridLayoutHelper.DefaultSpanSizeLookup;
import com.alibaba.android.vlayout.layout.GridLayoutHelper.SpanSizeLookup;
-import android.support.annotation.NonNull;
-import android.support.v4.util.ArrayMap;
-import android.support.v7.widget.RecyclerView;
-import android.support.v7.widget.RecyclerView.Recycler;
-import android.support.v7.widget.RecyclerView.State;
+import androidx.annotation.NonNull;
+import androidx.collection.ArrayMap;
+import androidx.recyclerview.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView.Recycler;
+import androidx.recyclerview.widget.RecyclerView.State;
import android.util.Log;
import android.view.View;
-import static android.support.v7.widget.LinearLayoutManager.VERTICAL;
+import static androidx.recyclerview.widget.LinearLayoutManager.VERTICAL;
/**
* LayoutHelper provides RangeGridLayoutHelper. The difference with {@link GridLayoutHelper} is that this layoutHelper could has child group logically but implemented as flat.
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeStyle.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeStyle.java
index 160a7bb6..422f3832 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeStyle.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/RangeStyle.java
@@ -11,11 +11,11 @@
import com.alibaba.android.vlayout.layout.BaseLayoutHelper.LayoutViewUnBindListener;
import android.graphics.Rect;
-import android.support.annotation.NonNull;
-import android.support.v4.util.ArrayMap;
-import android.support.v4.util.SimpleArrayMap;
-import android.support.v7.widget.OrientationHelper;
-import android.support.v7.widget.RecyclerView;
+import androidx.annotation.NonNull;
+import androidx.collection.ArrayMap;
+import androidx.collection.SimpleArrayMap;
+
+import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.View;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/SingleLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/SingleLayoutHelper.java
index 56985390..62fa8c1f 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/SingleLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/SingleLayoutHelper.java
@@ -28,7 +28,7 @@
import com.alibaba.android.vlayout.OrientationHelperEx;
import com.alibaba.android.vlayout.VirtualLayoutManager;
-import android.support.v7.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import static com.alibaba.android.vlayout.VirtualLayoutManager.VERTICAL;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StaggeredGridLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StaggeredGridLayoutHelper.java
index d1df4a88..ae01e363 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StaggeredGridLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StaggeredGridLayoutHelper.java
@@ -39,14 +39,14 @@
import com.alibaba.android.vlayout.VirtualLayoutManager.LayoutStateWrapper;
import android.os.Bundle;
-import android.support.annotation.NonNull;
-import android.support.v4.view.ViewCompat;
-import android.support.v7.widget.RecyclerView;
-import android.support.v7.widget.RecyclerView.LayoutParams;
+import androidx.annotation.NonNull;
+import androidx.core.view.ViewCompat;
+import androidx.recyclerview.widget.RecyclerView;
+import androidx.recyclerview.widget.RecyclerView.LayoutParams;
import android.util.Log;
import android.view.View;
-import static android.support.v7.widget.LinearLayoutManager.INVALID_OFFSET;
+import static androidx.recyclerview.widget.LinearLayoutManager.INVALID_OFFSET;
import static com.alibaba.android.vlayout.VirtualLayoutManager.HORIZONTAL;
import static com.alibaba.android.vlayout.VirtualLayoutManager.LayoutStateWrapper.LAYOUT_END;
import static com.alibaba.android.vlayout.VirtualLayoutManager.LayoutStateWrapper.LAYOUT_START;
diff --git a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StickyLayoutHelper.java b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StickyLayoutHelper.java
index 39c11db7..a0f12b58 100644
--- a/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StickyLayoutHelper.java
+++ b/vlayout/src/main/java/com/alibaba/android/vlayout/layout/StickyLayoutHelper.java
@@ -24,8 +24,8 @@
package com.alibaba.android.vlayout.layout;
-import android.support.annotation.Nullable;
-import android.support.v7.widget.RecyclerView;
+import androidx.annotation.Nullable;
+import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.View;
@@ -35,7 +35,7 @@
import com.alibaba.android.vlayout.VirtualLayoutManager;
import com.alibaba.android.vlayout.VirtualLayoutManager.LayoutStateWrapper;
-import static android.support.v7.widget.LinearLayoutManager.VERTICAL;
+import static androidx.recyclerview.widget.LinearLayoutManager.VERTICAL;
/**