* For horizontal layouts, it depends on the layout direction. - * When set to true, If {@link androidx.recyclerview.widget.RecyclerView} is LTR, than it will - * layout from RTL, if {@link androidx.recyclerview.widget.RecyclerView}} is RTL, it will layout + * When set to true, If {@link android.support.v7.widget.RecyclerView} is LTR, than it will + * layout from RTL, if {@link android.support.v7.widget.RecyclerView}} is RTL, it will layout * from LTR. */ public void setReverseLayout(boolean reverseLayout) { diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterScrollListener.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterScrollListener.java index 0e64f2c7..197bb4b5 100644 --- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterScrollListener.java +++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterScrollListener.java @@ -17,11 +17,11 @@ package com.xuexiang.xui.widget.banner.recycler.layout; -import androidx.recyclerview.widget.RecyclerView; +import android.support.v7.widget.RecyclerView; /** - * A {@link androidx.recyclerview.widget.RecyclerView.OnScrollListener} which helps {@link OverFlyingLayoutManager} + * A {@link android.support.v7.widget.RecyclerView.OnScrollListener} which helps {@link OverFlyingLayoutManager} * to center the current position */ public class CenterScrollListener extends RecyclerView.OnScrollListener { diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterSnapHelper.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterSnapHelper.java index bb78cd14..be023fc7 100644 --- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterSnapHelper.java +++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/CenterSnapHelper.java @@ -17,9 +17,9 @@ package com.xuexiang.xui.widget.banner.recycler.layout; -import androidx.annotation.Nullable; -import androidx.recyclerview.widget.RecyclerView; -import androidx.recyclerview.widget.RecyclerView.LayoutManager; +import android.support.annotation.Nullable; +import android.support.v7.widget.RecyclerView; +import android.support.v7.widget.RecyclerView.LayoutManager; import android.view.animation.DecelerateInterpolator; import android.widget.Scroller; diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/OverFlyingLayoutManager.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/OverFlyingLayoutManager.java index 2c4c2707..311570e5 100644 --- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/OverFlyingLayoutManager.java +++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/recycler/layout/OverFlyingLayoutManager.java @@ -25,11 +25,11 @@ import android.view.View; import android.view.ViewGroup; -import androidx.core.view.ViewCompat; -import androidx.recyclerview.widget.LinearLayoutManager; -import androidx.recyclerview.widget.LinearSmoothScroller; -import androidx.recyclerview.widget.OrientationHelper; -import androidx.recyclerview.widget.RecyclerView; +import android.support.v4.view.ViewCompat; +import android.support.v7.widget.LinearLayoutManager; +import android.support.v7.widget.LinearSmoothScroller; +import android.support.v7.widget.OrientationHelper; +import android.support.v7.widget.RecyclerView; /** * @author xuexiang @@ -375,8 +375,8 @@ public boolean getReverseLayout() { * laid out at the end of the UI, second item is laid out before it etc. *
* For horizontal layouts, it depends on the layout direction.
- * When set to true, If {@link androidx.recyclerview.widget.RecyclerView} is LTR, than it will
- * layout from RTL, if {@link androidx.recyclerview.widget.RecyclerView}} is RTL, it will layout
+ * When set to true, If {@link android.support.v7.widget.RecyclerView} is LTR, than it will
+ * layout from RTL, if {@link android.support.v7.widget.RecyclerView}} is RTL, it will layout
* from LTR.
*/
public void setReverseLayout(boolean reverseLayout) {
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/DepthTransformer.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/DepthTransformer.java
index 2939a2d5..74dcb9b4 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/DepthTransformer.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/DepthTransformer.java
@@ -2,8 +2,8 @@
import android.view.View;
-import androidx.annotation.NonNull;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.NonNull;
+import android.support.v4.view.ViewPager;
/**
* 3D旋转切换
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FadeSlideTransformer.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FadeSlideTransformer.java
index 2f6c5bc8..13562f87 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FadeSlideTransformer.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FadeSlideTransformer.java
@@ -1,7 +1,7 @@
package com.xuexiang.xui.widget.banner.transform;
-import androidx.annotation.NonNull;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.NonNull;
+import android.support.v4.view.ViewPager;
import android.view.View;
/**
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FlowTransformer.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FlowTransformer.java
index 0f7b6388..9bb5097a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FlowTransformer.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/FlowTransformer.java
@@ -1,7 +1,7 @@
package com.xuexiang.xui.widget.banner.transform;
-import androidx.annotation.NonNull;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.NonNull;
+import android.support.v4.view.ViewPager;
import android.view.View;
/**
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateDownTransformer.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateDownTransformer.java
index ce22a09f..99ed0e8e 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateDownTransformer.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateDownTransformer.java
@@ -2,7 +2,7 @@
import android.view.View;
-import androidx.viewpager.widget.ViewPager;
+import android.support.v4.view.ViewPager;
/**
* 向下旋转切换
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateUpTransformer.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateUpTransformer.java
index 93a114e0..eb604c54 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateUpTransformer.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/RotateUpTransformer.java
@@ -1,7 +1,7 @@
package com.xuexiang.xui.widget.banner.transform;
-import androidx.annotation.NonNull;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.NonNull;
+import android.support.v4.view.ViewPager;
import android.view.View;
/**
* 向上旋转切换
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/ZoomOutSlideTransformer.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/ZoomOutSlideTransformer.java
index a583bd37..b31c3074 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/ZoomOutSlideTransformer.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/transform/ZoomOutSlideTransformer.java
@@ -2,8 +2,8 @@
import android.view.View;
-import androidx.annotation.NonNull;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.NonNull;
+import android.support.v4.view.ViewPager;
/**
* 侧滑缩小切换
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/banner/base/BaseBanner.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/banner/base/BaseBanner.java
index 2f499422..b6816172 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/banner/base/BaseBanner.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/banner/base/BaseBanner.java
@@ -6,10 +6,8 @@
import android.graphics.Typeface;
import android.os.Handler;
import android.os.Message;
-
-import androidx.viewpager.widget.PagerAdapter;
-import androidx.viewpager.widget.ViewPager;
-import androidx.viewpager.widget.ViewPager;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopPagerAdapterWrapper.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopPagerAdapterWrapper.java
index 76139510..66ae06a9 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopPagerAdapterWrapper.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopPagerAdapterWrapper.java
@@ -1,14 +1,13 @@
package com.xuexiang.xui.widget.banner.widget.loopviewpager;
import android.os.Parcelable;
+import android.support.v4.app.FragmentPagerAdapter;
+import android.support.v4.app.FragmentStatePagerAdapter;
+import android.support.v4.view.PagerAdapter;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
-import androidx.fragment.app.FragmentPagerAdapter;
-import androidx.fragment.app.FragmentStatePagerAdapter;
-import androidx.viewpager.widget.PagerAdapter;
-
/**
* A PagerAdapter wrapper responsible for providing a proper page to
* LoopViewPager
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopViewPager.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopViewPager.java
index 0a0daf2a..ee478d8a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopViewPager.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/banner/widget/loopviewpager/LoopViewPager.java
@@ -1,11 +1,10 @@
package com.xuexiang.xui.widget.banner.widget.loopviewpager;
import android.content.Context;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
-import androidx.viewpager.widget.PagerAdapter;
-import androidx.viewpager.widget.ViewPager;
-
import java.util.ArrayList;
import java.util.List;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BaseBehavior.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BaseBehavior.java
index b0150240..a318ef9a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BaseBehavior.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BaseBehavior.java
@@ -18,8 +18,8 @@
package com.xuexiang.xui.widget.behavior;
import android.content.Context;
-import androidx.coordinatorlayout.widget.CoordinatorLayout;
-import androidx.core.view.ViewCompat;
+import android.support.design.widget.CoordinatorLayout;
+import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewConfiguration;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BottomNavigationViewBehavior.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BottomNavigationViewBehavior.java
index 6395c2b6..7a7ded0a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BottomNavigationViewBehavior.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/BottomNavigationViewBehavior.java
@@ -18,7 +18,7 @@
package com.xuexiang.xui.widget.behavior;
import android.content.Context;
-import androidx.coordinatorlayout.widget.CoordinatorLayout;
+import android.support.design.widget.CoordinatorLayout;
import android.util.AttributeSet;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/FloatingActionButtonBehavior.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/FloatingActionButtonBehavior.java
index b230ab8d..e133bd0f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/FloatingActionButtonBehavior.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/FloatingActionButtonBehavior.java
@@ -18,7 +18,7 @@
package com.xuexiang.xui.widget.behavior;
import android.content.Context;
-import androidx.coordinatorlayout.widget.CoordinatorLayout;
+import android.support.design.widget.CoordinatorLayout;
import android.util.AttributeSet;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/ToolBarBehavior.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/ToolBarBehavior.java
index ace9dd9b..f29c1188 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/ToolBarBehavior.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/ToolBarBehavior.java
@@ -17,7 +17,7 @@
package com.xuexiang.xui.widget.behavior;
import android.content.Context;
-import androidx.coordinatorlayout.widget.CoordinatorLayout;
+import android.support.design.widget.CoordinatorLayout;
import android.util.AttributeSet;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/TranslateAnimateHelper.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/TranslateAnimateHelper.java
index 29f30b33..8e2af8ab 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/TranslateAnimateHelper.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/behavior/TranslateAnimateHelper.java
@@ -18,7 +18,7 @@
package com.xuexiang.xui.widget.behavior;
import android.animation.ValueAnimator;
-import androidx.coordinatorlayout.widget.CoordinatorLayout;
+import android.support.design.widget.CoordinatorLayout;
import android.view.View;
/**
@@ -48,6 +48,7 @@ public static TranslateAnimateHelper get(View target) {
return new TranslateAnimateHelper(target);
}
+ @Override
public void show() {
if (mMode == MODE_TITLE) {
showTitle();
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/ButtonView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/ButtonView.java
index 73a973a2..cfacc153 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/ButtonView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/ButtonView.java
@@ -9,8 +9,8 @@
import android.util.AttributeSet;
import android.view.MotionEvent;
-import androidx.annotation.NonNull;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.annotation.NonNull;
+import android.support.v7.widget.AppCompatTextView;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/CountDownButton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/CountDownButton.java
index 3d480336..c236d836 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/CountDownButton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/CountDownButton.java
@@ -4,7 +4,7 @@
import android.content.res.TypedArray;
import android.graphics.Rect;
import android.os.CountDownTimer;
-import androidx.appcompat.widget.AppCompatButton;
+import android.support.v7.widget.AppCompatButton;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.MotionEvent;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/RippleView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/RippleView.java
index 296ffe0d..a198e76c 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/RippleView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/RippleView.java
@@ -28,7 +28,7 @@
import android.graphics.Rect;
import android.os.Build;
import android.os.Handler;
-import androidx.annotation.ColorRes;
+import android.support.annotation.ColorRes;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundButton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundButton.java
index ecb6115a..82996be1 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundButton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundButton.java
@@ -1,7 +1,7 @@
package com.xuexiang.xui.widget.button.roundbutton;
import android.content.Context;
-import androidx.appcompat.widget.AppCompatButton;
+import android.support.v7.widget.AppCompatButton;
import android.util.AttributeSet;
/**
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundDrawable.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundDrawable.java
index cca1437a..7abf654c 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundDrawable.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/roundbutton/RoundDrawable.java
@@ -7,7 +7,7 @@
import android.graphics.Rect;
import android.graphics.drawable.GradientDrawable;
import android.os.Build;
-import androidx.annotation.Nullable;
+import android.support.annotation.Nullable;
import android.util.AttributeSet;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/BaseShadowButton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/BaseShadowButton.java
index 6f754604..fd5d4f74 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/BaseShadowButton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/BaseShadowButton.java
@@ -6,7 +6,7 @@
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
-import androidx.appcompat.widget.AppCompatButton;
+import android.support.v7.widget.AppCompatButton;
import android.util.AttributeSet;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/ShadowImageView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/ShadowImageView.java
index 4d832c2b..9500870a 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/ShadowImageView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/shadowbutton/ShadowImageView.java
@@ -5,7 +5,7 @@
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
-import androidx.appcompat.widget.AppCompatImageView;
+import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import android.view.MotionEvent;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/switchbutton/SwitchButton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/switchbutton/SwitchButton.java
index e3da1844..5ce26a2d 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/button/switchbutton/SwitchButton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/button/switchbutton/SwitchButton.java
@@ -15,7 +15,7 @@
import android.graphics.drawable.StateListDrawable;
import android.os.Parcel;
import android.os.Parcelable;
-import androidx.core.content.ContextCompat;
+import android.support.v4.content.ContextCompat;
import android.text.Layout;
import android.text.StaticLayout;
import android.text.TextPaint;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/BaseDialog.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/BaseDialog.java
index 7db7146c..152e98da 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/BaseDialog.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/BaseDialog.java
@@ -23,7 +23,7 @@
import android.view.View;
import android.view.WindowManager;
-import androidx.appcompat.app.AppCompatDialog;
+import android.support.v7.app.AppCompatDialog;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.KeyboardUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/DialogLoader.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/DialogLoader.java
index a3d9b3e9..158f55de 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/DialogLoader.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/DialogLoader.java
@@ -21,7 +21,7 @@
import android.content.Context;
import android.content.DialogInterface;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.widget.dialog.strategy.IDialogStrategy;
import com.xuexiang.xui.widget.dialog.strategy.InputCallback;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/LoadingDialog.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/LoadingDialog.java
index fc106513..41595c17 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/LoadingDialog.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/LoadingDialog.java
@@ -20,7 +20,7 @@
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
-import androidx.annotation.StyleRes;
+import android.support.annotation.StyleRes;
import android.widget.TextView;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/MiniLoadingDialog.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/MiniLoadingDialog.java
index c05a0715..50a4c67d 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/MiniLoadingDialog.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/MiniLoadingDialog.java
@@ -2,7 +2,7 @@
import android.content.Context;
import android.content.DialogInterface;
-import androidx.annotation.StyleRes;
+import android.support.annotation.StyleRes;
import android.widget.TextView;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheet.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheet.java
index 1cde5924..8c922b10 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheet.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheet.java
@@ -24,11 +24,11 @@
import android.widget.ListView;
import android.widget.TextView;
-import androidx.annotation.IntDef;
-import androidx.annotation.NonNull;
-import androidx.appcompat.content.res.AppCompatResources;
-import androidx.appcompat.widget.AppCompatImageView;
-import androidx.core.content.ContextCompat;
+import android.support.annotation.IntDef;
+import android.support.annotation.NonNull;
+import android.support.v7.content.res.AppCompatResources;
+import android.support.v7.widget.AppCompatImageView;
+import android.support.v4.content.ContextCompat;
import com.xuexiang.xui.R;
import com.xuexiang.xui.logs.UILog;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheetItemView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheetItemView.java
index 6bd0d2f5..1612de51 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheetItemView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/bottomsheet/BottomSheetItemView.java
@@ -1,7 +1,7 @@
package com.xuexiang.xui.widget.dialog.bottomsheet;
import android.content.Context;
-import androidx.appcompat.widget.AppCompatImageView;
+import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import android.view.ViewStub;
import android.widget.TextView;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/CustomMaterialDialog.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/CustomMaterialDialog.java
index 5d865a10..f058389c 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/CustomMaterialDialog.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/CustomMaterialDialog.java
@@ -20,7 +20,7 @@
import android.content.Context;
import android.view.View;
-import androidx.annotation.IdRes;
+import android.support.annotation.IdRes;
/**
* 基础抽象的弹窗,可继承后自定义弹窗
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DefaultRvAdapter.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DefaultRvAdapter.java
index d370053d..b94c72c9 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DefaultRvAdapter.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DefaultRvAdapter.java
@@ -21,8 +21,8 @@
import android.annotation.TargetApi;
import android.content.res.Configuration;
import android.os.Build;
-import androidx.annotation.LayoutRes;
-import androidx.recyclerview.widget.RecyclerView;
+import android.support.annotation.LayoutRes;
+import android.support.v7.widget.RecyclerView;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogBase.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogBase.java
index 6be05fbf..1536c1f2 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogBase.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogBase.java
@@ -20,7 +20,7 @@
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogInit.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogInit.java
index 832e9365..edd22a4a 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogInit.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/DialogInit.java
@@ -37,11 +37,11 @@
import android.widget.ScrollView;
import android.widget.TextView;
-import androidx.annotation.LayoutRes;
-import androidx.annotation.NonNull;
-import androidx.annotation.StyleRes;
-import androidx.annotation.UiThread;
-import androidx.recyclerview.widget.RecyclerView;
+import android.support.annotation.LayoutRes;
+import android.support.annotation.NonNull;
+import android.support.annotation.StyleRes;
+import android.support.annotation.UiThread;
+import android.support.v7.widget.RecyclerView;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/MaterialDialog.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/MaterialDialog.java
index b4cd6fc4..4931e47c 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/MaterialDialog.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/MaterialDialog.java
@@ -27,6 +27,8 @@
import android.os.Build;
import android.os.Handler;
import android.os.IBinder;
+import android.support.v7.widget.GridLayoutManager;
+import android.support.v7.widget.LinearLayoutManager;
import android.text.Editable;
import android.text.Html;
import android.text.TextUtils;
@@ -46,22 +48,22 @@
import android.widget.RadioButton;
import android.widget.TextView;
-import androidx.annotation.ArrayRes;
-import androidx.annotation.AttrRes;
-import androidx.annotation.ColorInt;
-import androidx.annotation.ColorRes;
-import androidx.annotation.DimenRes;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.IntRange;
-import androidx.annotation.LayoutRes;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.annotation.StringRes;
-import androidx.annotation.UiThread;
-import androidx.core.content.res.ResourcesCompat;
-import androidx.recyclerview.widget.GridLayoutManager;
-import androidx.recyclerview.widget.LinearLayoutManager;
-import androidx.recyclerview.widget.RecyclerView;
+import android.support.annotation.ArrayRes;
+import android.support.annotation.AttrRes;
+import android.support.annotation.ColorInt;
+import android.support.annotation.ColorRes;
+import android.support.annotation.DimenRes;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.IntRange;
+import android.support.annotation.LayoutRes;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.annotation.StringRes;
+import android.support.annotation.UiThread;
+import android.support.v4.content.res.ResourcesCompat;
+import android.support.v7.widget.GridLayoutManager;
+import android.support.v7.widget.LinearLayoutManager;
+import android.support.v7.widget.RecyclerView;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
@@ -2246,7 +2248,7 @@ public Builder autoDismiss(boolean dismiss) {
}
/**
- * Sets a custom {@link androidx.recyclerview.widget.RecyclerView.Adapter} for the dialog's list
+ * Sets a custom {@link android.support.v7.widget.RecyclerView.Adapter} for the dialog's list
*
* @param adapter The adapter to set to the list.
* @param layoutManager The layout manager to use in the RecyclerView. Pass null to use the
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDRootLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDRootLayout.java
index b31f6e83..49ea1269 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDRootLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDRootLayout.java
@@ -25,8 +25,8 @@
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Build;
-import androidx.annotation.Nullable;
-import androidx.recyclerview.widget.RecyclerView;
+import android.support.annotation.Nullable;
+import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDTintHelper.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDTintHelper.java
index 65f74741..a07f4caa 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDTintHelper.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/MDTintHelper.java
@@ -23,11 +23,11 @@
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Build;
-import androidx.annotation.ColorInt;
-import androidx.annotation.NonNull;
-import androidx.core.content.ContextCompat;
-import androidx.core.graphics.drawable.DrawableCompat;
-import androidx.appcompat.widget.AppCompatEditText;
+import android.support.annotation.ColorInt;
+import android.support.annotation.NonNull;
+import android.support.v4.content.ContextCompat;
+import android.support.v4.graphics.drawable.DrawableCompat;
+import android.support.v7.widget.AppCompatEditText;
import android.util.Log;
import android.widget.CheckBox;
import android.widget.EditText;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/ThemeSingleton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/ThemeSingleton.java
index 9c7a8ced..059f8467 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/ThemeSingleton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/internal/ThemeSingleton.java
@@ -19,8 +19,8 @@
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
+import android.support.annotation.ColorInt;
+import android.support.annotation.DrawableRes;
import com.xuexiang.xui.widget.dialog.materialdialog.GravityEnum;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListAdapter.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListAdapter.java
index 2b4db4de..1007be9e 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListAdapter.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListAdapter.java
@@ -18,7 +18,7 @@
package com.xuexiang.xui.widget.dialog.materialdialog.simplelist;
import android.graphics.PorterDuff;
-import androidx.recyclerview.widget.RecyclerView;
+import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListItem.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListItem.java
index 061ea05b..0e84ca93 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListItem.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/simplelist/MaterialSimpleListItem.java
@@ -20,15 +20,15 @@
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
-import androidx.annotation.AttrRes;
-import androidx.annotation.ColorInt;
-import androidx.annotation.ColorRes;
-import androidx.annotation.DimenRes;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.IntRange;
-import androidx.annotation.Nullable;
-import androidx.annotation.StringRes;
-import androidx.core.content.ContextCompat;
+import android.support.annotation.AttrRes;
+import android.support.annotation.ColorInt;
+import android.support.annotation.ColorRes;
+import android.support.annotation.DimenRes;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.IntRange;
+import android.support.annotation.Nullable;
+import android.support.annotation.StringRes;
+import android.support.v4.content.ContextCompat;
import android.util.TypedValue;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ThemeUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/util/RippleHelper.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/util/RippleHelper.java
index 7d8b0e17..29cf1fc7 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/util/RippleHelper.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/materialdialog/util/RippleHelper.java
@@ -22,7 +22,7 @@
import android.graphics.drawable.Drawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Build;
-import androidx.annotation.ColorInt;
+import android.support.annotation.ColorInt;
/** @author Aidan Follestad (afollestad) */
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/IDialogStrategy.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/IDialogStrategy.java
index 20d40407..5a5f2093 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/IDialogStrategy.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/IDialogStrategy.java
@@ -20,8 +20,8 @@
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
-import androidx.annotation.ArrayRes;
-import androidx.annotation.DrawableRes;
+import android.support.annotation.ArrayRes;
+import android.support.annotation.DrawableRes;
/**
* 对话框的策略
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/InputCallback.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/InputCallback.java
index b8441dde..f77c8dba 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/InputCallback.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/InputCallback.java
@@ -18,7 +18,7 @@
package com.xuexiang.xui.widget.dialog.strategy;
import android.content.DialogInterface;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
/**
* 输入内容回调
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/AlertDialogStrategy.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/AlertDialogStrategy.java
index fbe507f8..d5eb87de 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/AlertDialogStrategy.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/AlertDialogStrategy.java
@@ -21,8 +21,8 @@
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
-import androidx.annotation.ArrayRes;
-import androidx.annotation.NonNull;
+import android.support.annotation.ArrayRes;
+import android.support.annotation.NonNull;
import android.widget.EditText;
import android.widget.FrameLayout;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/MaterialDialogStrategy.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/MaterialDialogStrategy.java
index 84691e96..1e7d237f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/MaterialDialogStrategy.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/dialog/strategy/impl/MaterialDialogStrategy.java
@@ -20,7 +20,7 @@
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import android.view.View;
import com.xuexiang.xui.widget.dialog.materialdialog.DialogAction;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ClearEditText.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ClearEditText.java
index b9bb0df5..72bd6cae 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ClearEditText.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ClearEditText.java
@@ -13,7 +13,7 @@
import android.view.animation.CycleInterpolator;
import android.view.animation.TranslateAnimation;
-import androidx.appcompat.widget.AppCompatEditText;
+import android.support.v7.widget.AppCompatEditText;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/PasswordEditText.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/PasswordEditText.java
index c4bcca90..5a6fc215 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/PasswordEditText.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/PasswordEditText.java
@@ -15,7 +15,7 @@
import android.view.MotionEvent;
import android.view.View;
-import androidx.appcompat.widget.AppCompatEditText;
+import android.support.v7.widget.AppCompatEditText;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ValidatorEditText.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ValidatorEditText.java
index abdd69bf..d5433d6f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ValidatorEditText.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/ValidatorEditText.java
@@ -3,7 +3,7 @@
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
-import androidx.appcompat.widget.AppCompatEditText;
+import android.support.v7.widget.AppCompatEditText;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/MaterialEditText.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/MaterialEditText.java
index d5b44382..06d7fd68 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/MaterialEditText.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/MaterialEditText.java
@@ -29,11 +29,11 @@
import android.view.MotionEvent;
import android.view.View;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.IntDef;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.appcompat.widget.AppCompatEditText;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.IntDef;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.v7.widget.AppCompatEditText;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/METValidator.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/METValidator.java
index d8ad0260..55ed956c 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/METValidator.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/METValidator.java
@@ -1,6 +1,6 @@
package com.xuexiang.xui.widget.edittext.materialedittext.validation;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
/**
* 自定义校验器
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/NotAllowEmptyValidator.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/NotAllowEmptyValidator.java
index 4bfe93f4..2e83dc2a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/NotAllowEmptyValidator.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/NotAllowEmptyValidator.java
@@ -17,7 +17,7 @@
package com.xuexiang.xui.widget.edittext.materialedittext.validation;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
/**
* 非空检验
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/RegexpValidator.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/RegexpValidator.java
index 85a7c70c..daf8f7a1 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/RegexpValidator.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/materialedittext/validation/RegexpValidator.java
@@ -1,6 +1,6 @@
package com.xuexiang.xui.widget.edittext.materialedittext.validation;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import java.util.regex.Pattern;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdEditText.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdEditText.java
index 0826399e..31e646ba 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdEditText.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdEditText.java
@@ -5,7 +5,7 @@
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
-import androidx.appcompat.widget.AppCompatEditText;
+import android.support.v7.widget.AppCompatEditText;
/**
*
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdTextView.java
index ef64b78e..bad60266 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/edittext/verify/PwdTextView.java
@@ -4,7 +4,7 @@
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;
/**
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/flowlayout/FlowTagLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/flowlayout/FlowTagLayout.java
index 5d9341d5..b7b36777 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/flowlayout/FlowTagLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/flowlayout/FlowTagLayout.java
@@ -3,7 +3,7 @@
import android.content.Context;
import android.content.res.TypedArray;
import android.database.DataSetObserver;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.util.SparseBooleanArray;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUICommonListItemView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUICommonListItemView.java
index d11f60f5..aa2993d7 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUICommonListItemView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUICommonListItemView.java
@@ -34,7 +34,7 @@
import android.widget.Space;
import android.widget.TextView;
-import androidx.annotation.IntDef;
+import android.support.annotation.IntDef;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.DensityUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUIGroupListView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUIGroupListView.java
index 3c75aaa7..53bb850b 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUIGroupListView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/grouplist/XUIGroupListView.java
@@ -20,7 +20,7 @@
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
-import androidx.annotation.IntDef;
+import android.support.annotation.IntDef;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideCaseView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideCaseView.java
index 154a428e..1f7db17f 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideCaseView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideCaseView.java
@@ -21,12 +21,12 @@
import android.widget.ImageView;
import android.widget.TextView;
-import androidx.annotation.AttrRes;
-import androidx.annotation.LayoutRes;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.annotation.RequiresApi;
-import androidx.annotation.StyleRes;
+import android.support.annotation.AttrRes;
+import android.support.annotation.LayoutRes;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.annotation.RequiresApi;
+import android.support.annotation.StyleRes;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideImageView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideImageView.java
index 46ad9633..065bbaa3 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideImageView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/guidview/GuideImageView.java
@@ -10,7 +10,7 @@
import android.graphics.PorterDuffXfermode;
import android.graphics.RectF;
import android.os.Build;
-import androidx.appcompat.widget.AppCompatImageView;
+import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
/**
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/IconImageView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/IconImageView.java
index 69102987..eff0460e 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/IconImageView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/IconImageView.java
@@ -24,8 +24,8 @@
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
-import androidx.annotation.NonNull;
-import androidx.appcompat.widget.AppCompatImageView;
+import android.support.annotation.NonNull;
+import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/ImageLoader.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/ImageLoader.java
index 139e5024..201eca86 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/ImageLoader.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/ImageLoader.java
@@ -21,7 +21,7 @@
import android.graphics.drawable.Drawable;
import android.widget.ImageView;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.xuexiang.xui.widget.imageview.strategy.IImageLoadStrategy;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/RadiusImageView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/RadiusImageView.java
index 85f3b645..ba40fde7 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/RadiusImageView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/RadiusImageView.java
@@ -17,8 +17,8 @@
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
-import androidx.annotation.ColorInt;
-import androidx.appcompat.widget.AppCompatImageView;
+import android.support.annotation.ColorInt;
+import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import android.view.MotionEvent;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoView.java
index bec926d6..b672a7df 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoView.java
@@ -21,7 +21,7 @@
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.net.Uri;
-import androidx.appcompat.widget.AppCompatImageView;
+import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import android.view.GestureDetector;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoViewAttacher.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoViewAttacher.java
index a734b888..503cfe96 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoViewAttacher.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/photoview/PhotoViewAttacher.java
@@ -22,8 +22,8 @@
import android.graphics.Matrix.ScaleToFit;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
-import androidx.annotation.Nullable;
-import androidx.core.view.MotionEventCompat;
+import android.support.annotation.Nullable;
+import android.support.v4.view.MotionEventCompat;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
@@ -825,6 +825,7 @@ private RectF getDisplayRect(Matrix matrix) {
return null;
}
+ @Override
public Bitmap getVisibleRectangleBitmap() {
ImageView imageView = getImageView();
return imageView == null ? null : imageView.getDrawingCache();
@@ -832,8 +833,9 @@ public Bitmap getVisibleRectangleBitmap() {
@Override
public void setZoomTransitionDuration(int milliseconds) {
- if (milliseconds < 0)
+ if (milliseconds < 0) {
milliseconds = DEFAULT_ZOOM_DURATION;
+ }
this.ZOOM_DURATION = milliseconds;
}
@@ -953,14 +955,16 @@ private void updateBaseMatrix(Drawable d) {
}
private int getImageViewWidth(ImageView imageView) {
- if (null == imageView)
+ if (null == imageView) {
return 0;
+ }
return imageView.getWidth() - imageView.getPaddingLeft() - imageView.getPaddingRight();
}
private int getImageViewHeight(ImageView imageView) {
- if (null == imageView)
+ if (null == imageView) {
return 0;
+ }
return imageView.getHeight() - imageView.getPaddingTop() - imageView.getPaddingBottom();
}
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/MediaLoader.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/MediaLoader.java
index c8e1d77b..f206e6a2 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/MediaLoader.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/MediaLoader.java
@@ -19,8 +19,8 @@
import android.content.Context;
import android.widget.ImageView;
-import androidx.annotation.NonNull;
-import androidx.fragment.app.Fragment;
+import android.support.annotation.NonNull;
+import android.support.v4.app.Fragment;
import com.xuexiang.xui.widget.imageview.preview.loader.GlideMediaLoader;
import com.xuexiang.xui.widget.imageview.preview.loader.IMediaLoader;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/PreviewBuilder.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/PreviewBuilder.java
index b0c00637..d91b3ecf 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/PreviewBuilder.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/PreviewBuilder.java
@@ -20,9 +20,9 @@
import android.content.Intent;
import android.os.Parcelable;
-import androidx.annotation.ColorRes;
-import androidx.annotation.NonNull;
-import androidx.fragment.app.Fragment;
+import android.support.annotation.ColorRes;
+import android.support.annotation.NonNull;
+import android.support.v4.app.Fragment;
import com.xuexiang.xui.widget.imageview.preview.enitity.IPreviewInfo;
import com.xuexiang.xui.widget.imageview.preview.loader.OnVideoClickListener;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/enitity/IPreviewInfo.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/enitity/IPreviewInfo.java
index cbd57eb5..79e2f723 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/enitity/IPreviewInfo.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/enitity/IPreviewInfo.java
@@ -18,9 +18,7 @@
import android.graphics.Rect;
import android.os.Parcelable;
-import androidx.annotation.Nullable;
-
-import java.io.Serializable;
+import android.support.annotation.Nullable;
/**
* 图片预览接口
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/GlideMediaLoader.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/GlideMediaLoader.java
index 71cd03d2..2227d63f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/GlideMediaLoader.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/GlideMediaLoader.java
@@ -18,9 +18,9 @@
import android.content.Context;
import android.graphics.Bitmap;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.fragment.app.Fragment;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/IMediaLoader.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/IMediaLoader.java
index 497840d2..70b286ea 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/IMediaLoader.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/IMediaLoader.java
@@ -17,8 +17,8 @@
package com.xuexiang.xui.widget.imageview.preview.loader;
import android.content.Context;
-import androidx.annotation.NonNull;
-import androidx.fragment.app.Fragment;
+import android.support.annotation.NonNull;
+import android.support.v4.app.Fragment;
import android.widget.ImageView;
/**
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/ISimpleTarget.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/ISimpleTarget.java
index 8088f993..4ed526c1 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/ISimpleTarget.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/loader/ISimpleTarget.java
@@ -18,7 +18,7 @@
import android.graphics.drawable.Drawable;
-import androidx.annotation.Nullable;
+import android.support.annotation.Nullable;
/**
* 图片加载回调状态接口
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/BasePhotoFragment.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/BasePhotoFragment.java
index 8f55fef6..142cf50e 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/BasePhotoFragment.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/BasePhotoFragment.java
@@ -19,15 +19,15 @@
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
+import android.support.v4.view.ViewCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
-import androidx.annotation.CallSuper;
-import androidx.annotation.Nullable;
-import androidx.core.view.ViewCompat;
-import androidx.fragment.app.Fragment;
+import android.support.annotation.CallSuper;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/PreviewActivity.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/PreviewActivity.java
index 3c6588fa..001bc2fd 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/PreviewActivity.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/PreviewActivity.java
@@ -18,17 +18,17 @@
import android.graphics.Color;
import android.os.Bundle;
+import android.support.v4.app.FragmentActivity;
+import android.support.v4.view.ViewPager;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.TextView;
-import androidx.annotation.CallSuper;
-import androidx.fragment.app.Fragment;
-import androidx.fragment.app.FragmentActivity;
-import androidx.fragment.app.FragmentManager;
-import androidx.fragment.app.FragmentPagerAdapter;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.CallSuper;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.app.FragmentPagerAdapter;
import com.xuexiang.xui.R;
import com.xuexiang.xui.widget.imageview.preview.MediaLoader;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/VideoPlayerActivity.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/VideoPlayerActivity.java
index 34ff252d..3333d96f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/VideoPlayerActivity.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/ui/VideoPlayerActivity.java
@@ -20,8 +20,8 @@
import android.media.MediaPlayer;
import android.os.Bundle;
-import androidx.fragment.app.Fragment;
-import androidx.fragment.app.FragmentActivity;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentActivity;
import android.text.TextUtils;
import android.widget.Toast;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/BezierBannerView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/BezierBannerView.java
index 024c19d8..c0161b51 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/BezierBannerView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/BezierBannerView.java
@@ -21,8 +21,8 @@
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
-import androidx.annotation.Nullable;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.Nullable;
+import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/PhotoViewPager.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/PhotoViewPager.java
index 305ee84b..a7aba3ee 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/PhotoViewPager.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/preview/view/PhotoViewPager.java
@@ -17,7 +17,7 @@
package com.xuexiang.xui.widget.imageview.preview.view;
import android.content.Context;
-import androidx.viewpager.widget.ViewPager;
+import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/IImageLoadStrategy.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/IImageLoadStrategy.java
index 8a4ed11c..efb038d8 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/IImageLoadStrategy.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/IImageLoadStrategy.java
@@ -21,7 +21,7 @@
import android.graphics.drawable.Drawable;
import android.widget.ImageView;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/impl/GlideImageLoadStrategy.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/impl/GlideImageLoadStrategy.java
index e361064b..fb51185b 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/impl/GlideImageLoadStrategy.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/imageview/strategy/impl/GlideImageLoadStrategy.java
@@ -21,7 +21,7 @@
import android.graphics.drawable.Drawable;
import android.widget.ImageView;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/IXUILayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/IXUILayout.java
index e4eea9f3..f52cb4b1 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/IXUILayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/IXUILayout.java
@@ -19,8 +19,8 @@
import android.view.View;
-import androidx.annotation.ColorInt;
-import androidx.annotation.IntDef;
+import android.support.annotation.ColorInt;
+import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIButton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIButton.java
index 7994e741..5dc5a4c0 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIButton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIButton.java
@@ -21,7 +21,7 @@
import android.graphics.Canvas;
import android.util.AttributeSet;
-import androidx.annotation.ColorInt;
+import android.support.annotation.ColorInt;
import com.xuexiang.xui.widget.alpha.XUIAlphaButton;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIFrameLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIFrameLayout.java
index 24e7c309..9fc4cf49 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIFrameLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIFrameLayout.java
@@ -21,7 +21,7 @@
import android.graphics.Canvas;
import android.util.AttributeSet;
-import androidx.annotation.ColorInt;
+import android.support.annotation.ColorInt;
import com.xuexiang.xui.widget.alpha.XUIAlphaFrameLayout;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILayoutHelper.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILayoutHelper.java
index dbf202e8..5a7b7137 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILayoutHelper.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILayoutHelper.java
@@ -33,7 +33,7 @@
import android.view.View;
import android.view.ViewOutlineProvider;
-import androidx.annotation.ColorInt;
+import android.support.annotation.ColorInt;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ThemeUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILinearLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILinearLayout.java
index 8d31ece5..cc9f5a73 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILinearLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUILinearLayout.java
@@ -21,7 +21,7 @@
import android.graphics.Canvas;
import android.util.AttributeSet;
-import androidx.annotation.ColorInt;
+import android.support.annotation.ColorInt;
import com.xuexiang.xui.widget.alpha.XUIAlphaLinearLayout;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIRelativeLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIRelativeLayout.java
index 2ffdb4d7..bb8bfee5 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIRelativeLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/layout/XUIRelativeLayout.java
@@ -21,7 +21,7 @@
import android.graphics.Canvas;
import android.util.AttributeSet;
-import androidx.annotation.ColorInt;
+import android.support.annotation.ColorInt;
import com.xuexiang.xui.widget.alpha.XUIAlphaRelativeLayout;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/RulerView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/RulerView.java
index 2d9ed8d6..ceebc509 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/RulerView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/RulerView.java
@@ -19,7 +19,7 @@
import android.view.View;
import android.view.animation.DecelerateInterpolator;
-import androidx.annotation.Nullable;
+import android.support.annotation.Nullable;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/widget/OptionsPickerView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/widget/OptionsPickerView.java
index 00b9cf37..a3bee528 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/widget/OptionsPickerView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/picker/widget/OptionsPickerView.java
@@ -25,7 +25,7 @@
import android.widget.LinearLayout;
import android.widget.TextView;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/Cookie.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/Cookie.java
index 56e13f50..13758995 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/Cookie.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/Cookie.java
@@ -18,6 +18,7 @@
import android.content.Context;
import android.graphics.Color;
+import android.support.v4.content.ContextCompat;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.Gravity;
@@ -30,10 +31,8 @@
import android.widget.LinearLayout;
import android.widget.TextView;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.core.content.ContextCompat;
-
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ThemeUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/CookieBar.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/CookieBar.java
index 27005d8e..cb3e0c41 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/CookieBar.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/bar/CookieBar.java
@@ -17,9 +17,9 @@
package com.xuexiang.xui.widget.popupwindow.bar;
import android.app.Activity;
-import androidx.annotation.ColorRes;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.StringRes;
+import android.support.annotation.ColorRes;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.StringRes;
import android.view.Gravity;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/EasyPopup.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/EasyPopup.java
index 59a01682..ff4e91f4 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/EasyPopup.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/EasyPopup.java
@@ -6,6 +6,7 @@
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
+import android.support.v4.widget.PopupWindowCompat;
import android.transition.Transition;
import android.view.Gravity;
import android.view.KeyEvent;
@@ -17,15 +18,13 @@
import android.view.ViewTreeObserver;
import android.widget.PopupWindow;
-import androidx.annotation.ColorInt;
-import androidx.annotation.FloatRange;
-import androidx.annotation.IdRes;
-import androidx.annotation.LayoutRes;
-import androidx.annotation.NonNull;
-import androidx.annotation.RequiresApi;
-import androidx.annotation.StyleRes;
-import androidx.core.widget.PopupWindowCompat;
-
+import android.support.annotation.ColorInt;
+import android.support.annotation.FloatRange;
+import android.support.annotation.IdRes;
+import android.support.annotation.LayoutRes;
+import android.support.annotation.NonNull;
+import android.support.annotation.RequiresApi;
+import android.support.annotation.StyleRes;
import com.xuexiang.xui.logs.UILog;
/**
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/HorizontalGravity.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/HorizontalGravity.java
index cdca81eb..24e5c6e8 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/HorizontalGravity.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/HorizontalGravity.java
@@ -1,6 +1,6 @@
package com.xuexiang.xui.widget.popupwindow.easypopup;
-import androidx.annotation.IntDef;
+import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/VerticalGravity.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/VerticalGravity.java
index 621d59c3..4ecd620d 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/VerticalGravity.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/easypopup/VerticalGravity.java
@@ -1,6 +1,6 @@
package com.xuexiang.xui.widget.popupwindow.easypopup;
-import androidx.annotation.IntDef;
+import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/status/StatusView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/status/StatusView.java
index 3e95b97c..2131972e 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/status/StatusView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/popupwindow/status/StatusView.java
@@ -28,7 +28,7 @@
import android.widget.FrameLayout;
import android.widget.TextView;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/CircleProgressView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/CircleProgressView.java
index 1d9a3c08..a67ac414 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/CircleProgressView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/CircleProgressView.java
@@ -39,9 +39,9 @@
import android.view.animation.LinearInterpolator;
import android.view.animation.OvershootInterpolator;
-import androidx.annotation.ColorInt;
-import androidx.annotation.IntDef;
-import androidx.annotation.Nullable;
+import android.support.annotation.ColorInt;
+import android.support.annotation.IntDef;
+import android.support.annotation.Nullable;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/HorizontalProgressView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/HorizontalProgressView.java
index 6ec471a1..a25c1fd5 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/HorizontalProgressView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/HorizontalProgressView.java
@@ -36,9 +36,9 @@
import android.view.animation.LinearInterpolator;
import android.view.animation.OvershootInterpolator;
-import androidx.annotation.ColorInt;
-import androidx.annotation.IntDef;
-import androidx.annotation.Nullable;
+import android.support.annotation.ColorInt;
+import android.support.annotation.IntDef;
+import android.support.annotation.Nullable;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.DensityUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/ARCLoadingView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/ARCLoadingView.java
index 0402f25f..d0761138 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/ARCLoadingView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/ARCLoadingView.java
@@ -30,7 +30,7 @@
import android.util.AttributeSet;
import android.view.View;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.R;
import com.xuexiang.xui.UIConfig;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/LoadingViewLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/LoadingViewLayout.java
index d23bb1cf..c892b790 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/LoadingViewLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/LoadingViewLayout.java
@@ -27,8 +27,8 @@
import android.widget.LinearLayout;
import android.widget.TextView;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/MiniLoadingView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/MiniLoadingView.java
index 9316a6f1..8a15f889 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/MiniLoadingView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/loading/MiniLoadingView.java
@@ -10,7 +10,7 @@
import android.view.View;
import android.view.animation.LinearInterpolator;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.DensityUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseDrawable.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseDrawable.java
index 3096bc6a..813a5b60 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseDrawable.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseDrawable.java
@@ -27,9 +27,9 @@
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
-import androidx.annotation.ColorInt;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
+import android.support.annotation.ColorInt;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
abstract class BaseDrawable extends Drawable implements TintableDrawable {
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseProgressLayerDrawable.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseProgressLayerDrawable.java
index c85d5044..5cae241b 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseProgressLayerDrawable.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/BaseProgressLayerDrawable.java
@@ -24,13 +24,13 @@
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.os.Build;
+import android.support.annotation.ColorInt;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.annotation.RequiresApi;
+import android.support.v4.graphics.ColorUtils;
import android.util.Log;
-import androidx.annotation.ColorInt;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.annotation.RequiresApi;
-
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ThemeUtils;
@@ -110,7 +110,7 @@ public void setUseIntrinsicPadding(boolean useIntrinsicPadding) {
@Override
public void setTint(@ColorInt int tintColor) {
// Modulate alpha of tintColor against mBackgroundAlpha.
- int backgroundTintColor = androidx.core.graphics.ColorUtils.setAlphaComponent(
+ int backgroundTintColor = ColorUtils.setAlphaComponent(
tintColor, Math.round(Color.alpha(tintColor) * mBackgroundAlpha));
mBackgroundDrawable.setTint(backgroundTintColor);
mSecondaryProgressDrawable.setTint(backgroundTintColor);
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateCircularProgressDrawable.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateCircularProgressDrawable.java
index fcd0bf9b..df8d58dd 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateCircularProgressDrawable.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateCircularProgressDrawable.java
@@ -23,7 +23,7 @@
import android.graphics.Paint;
import android.graphics.RectF;
-import androidx.annotation.Keep;
+import android.support.annotation.Keep;
/**
* A backported {@code Drawable} for indeterminate circular {@code ProgressBar}.
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateHorizontalProgressDrawable.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateHorizontalProgressDrawable.java
index d50dd10a..db331056 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateHorizontalProgressDrawable.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/IndeterminateHorizontalProgressDrawable.java
@@ -23,7 +23,7 @@
import android.graphics.Paint;
import android.graphics.RectF;
-import androidx.annotation.Keep;
+import android.support.annotation.Keep;
import com.xuexiang.xui.utils.ThemeUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/Interpolators.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/Interpolators.java
index 6a199cac..15daf1f3 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/Interpolators.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/Interpolators.java
@@ -18,7 +18,7 @@
package com.xuexiang.xui.widget.progress.materialprogressbar;
import android.graphics.Path;
-import androidx.core.view.animation.PathInterpolatorCompat;
+import android.support.v4.view.animation.PathInterpolatorCompat;
import android.view.animation.Interpolator;
import android.view.animation.LinearInterpolator;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/MaterialProgressBar.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/MaterialProgressBar.java
index 5c86df92..3fa39d62 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/MaterialProgressBar.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/MaterialProgressBar.java
@@ -29,8 +29,8 @@
import android.util.Log;
import android.widget.ProgressBar;
-import androidx.annotation.Nullable;
-import androidx.appcompat.widget.TintTypedArray;
+import android.support.annotation.Nullable;
+import android.support.v7.widget.TintTypedArray;
import com.xuexiang.xui.R;
import com.xuexiang.xui.widget.progress.materialprogressbar.internal.DrawableCompat;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/TintableDrawable.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/TintableDrawable.java
index 1ca4c6d2..d89e5e51 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/TintableDrawable.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/TintableDrawable.java
@@ -22,9 +22,9 @@
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
-import androidx.annotation.ColorInt;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
+import android.support.annotation.ColorInt;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
/**
* A {@code Drawable} that is tintable.
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/internal/ObjectAnimatorCompatBase.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/internal/ObjectAnimatorCompatBase.java
index b7ac4fd6..754f110e 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/internal/ObjectAnimatorCompatBase.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/materialprogressbar/internal/ObjectAnimatorCompatBase.java
@@ -24,7 +24,7 @@
import android.graphics.PathMeasure;
import android.util.Property;
-import androidx.annotation.Size;
+import android.support.annotation.Size;
class ObjectAnimatorCompatBase {
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/AnimationRatingBar.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/AnimationRatingBar.java
index dbb740d1..655531c1 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/AnimationRatingBar.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/AnimationRatingBar.java
@@ -5,7 +5,7 @@
import android.os.SystemClock;
import android.util.AttributeSet;
-import androidx.annotation.Nullable;
+import android.support.annotation.Nullable;
import java.util.UUID;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/IRatingBar.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/IRatingBar.java
index 84d93586..9b10769c 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/IRatingBar.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/IRatingBar.java
@@ -2,9 +2,9 @@
import android.graphics.drawable.Drawable;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.FloatRange;
-import androidx.annotation.IntRange;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.FloatRange;
+import android.support.annotation.IntRange;
/**
* 星级评分控件
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/PartialView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/PartialView.java
index 447738b2..0c0ac34d 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/PartialView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/PartialView.java
@@ -9,7 +9,7 @@
import android.widget.ImageView;
import android.widget.RelativeLayout;
-import androidx.annotation.IntRange;
+import android.support.annotation.IntRange;
/**
*
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RatingBar.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RatingBar.java
index 8ded325d..3306aae9 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RatingBar.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RatingBar.java
@@ -9,11 +9,11 @@
import android.view.View;
import android.widget.LinearLayout;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.FloatRange;
-import androidx.annotation.IntRange;
-import androidx.annotation.Nullable;
-import androidx.core.content.ContextCompat;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.FloatRange;
+import android.support.annotation.IntRange;
+import android.support.annotation.Nullable;
+import android.support.v4.content.ContextCompat;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RotationRatingBar.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RotationRatingBar.java
index eb7114d8..426d1ca8 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RotationRatingBar.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/RotationRatingBar.java
@@ -5,8 +5,8 @@
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/ScaleRatingBar.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/ScaleRatingBar.java
index f8a3731e..4aa98c9e 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/ScaleRatingBar.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/progress/ratingbar/ScaleRatingBar.java
@@ -5,8 +5,8 @@
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/searchview/AnimationUtils.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/searchview/AnimationUtils.java
index da6b088f..83190bdb 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/searchview/AnimationUtils.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/searchview/AnimationUtils.java
@@ -20,8 +20,8 @@
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.os.Build;
-import androidx.core.view.ViewCompat;
-import androidx.core.view.ViewPropertyAnimatorListener;
+import android.support.v4.view.ViewCompat;
+import android.support.v4.view.ViewPropertyAnimatorListener;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewAnimationUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowButton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowButton.java
index da6d17ef..b4513aeb 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowButton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowButton.java
@@ -1,8 +1,8 @@
package com.xuexiang.xui.widget.shadow;
import android.content.Context;
-import androidx.core.view.ViewCompat;
-import androidx.appcompat.widget.AppCompatButton;
+import android.support.v4.view.ViewCompat;
+import android.support.v7.widget.AppCompatButton;
import android.util.AttributeSet;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowDrawable.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowDrawable.java
index c8a171c0..e25e6663 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowDrawable.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowDrawable.java
@@ -13,10 +13,9 @@
import android.graphics.RectF;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
-
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.core.view.ViewCompat;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowTextView.java
index 636e7265..edb62084 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/shadow/ShadowTextView.java
@@ -4,8 +4,8 @@
import android.util.AttributeSet;
import android.view.View;
-import androidx.appcompat.widget.AppCompatTextView;
-import androidx.core.view.ViewCompat;
+import android.support.v7.widget.AppCompatTextView;
+import android.support.v4.view.ViewCompat;
/**
* 可设置阴影的TextView
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/SlideBack.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/SlideBack.java
index fd95332a..24c3e7d9 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/SlideBack.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/SlideBack.java
@@ -19,7 +19,7 @@
import android.app.Activity;
-import androidx.annotation.IntDef;
+import android.support.annotation.IntDef;
import com.xuexiang.xui.widget.slideback.callback.SlideBackCallBack;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/ISlideTouchEventDispatcher.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/ISlideTouchEventDispatcher.java
index 38577fe7..ccc813a6 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/ISlideTouchEventDispatcher.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/ISlideTouchEventDispatcher.java
@@ -19,7 +19,7 @@
import android.view.View;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.widget.slideback.SlideInfo;
import com.xuexiang.xui.widget.slideback.callback.SlideCallBack;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/impl/DefaultSlideTouchDispatcher.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/impl/DefaultSlideTouchDispatcher.java
index da6be14e..ad31706f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/impl/DefaultSlideTouchDispatcher.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/dispatcher/impl/DefaultSlideTouchDispatcher.java
@@ -20,7 +20,7 @@
import android.view.MotionEvent;
import android.view.View;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.widget.slideback.SlideInfo;
import com.xuexiang.xui.widget.slideback.callback.SlideCallBack;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/widget/SlideBackIconView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/widget/SlideBackIconView.java
index d5966447..a66dd6b6 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/widget/SlideBackIconView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/slideback/widget/SlideBackIconView.java
@@ -25,8 +25,8 @@
import android.util.AttributeSet;
import android.view.View;
-import androidx.annotation.ColorInt;
-import androidx.annotation.Nullable;
+import android.support.annotation.ColorInt;
+import android.support.annotation.Nullable;
/**
* 边缘返回的图标View
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinner.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinner.java
index c51e7902..faaa540f 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinner.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinner.java
@@ -24,9 +24,9 @@
import android.widget.ListPopupWindow;
import android.widget.PopupWindow;
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.NonNull;
+import android.support.annotation.ColorInt;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.DensityUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinnerAdapter.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinnerAdapter.java
index b74c52f9..f1cc774c 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinnerAdapter.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/editspinner/EditSpinnerAdapter.java
@@ -11,8 +11,8 @@
import android.view.ViewGroup;
import android.widget.TextView;
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
+import android.support.annotation.ColorInt;
+import android.support.annotation.DrawableRes;
import com.xuexiang.xui.R;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinner.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinner.java
index d0113320..c8843693 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinner.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinner.java
@@ -21,11 +21,11 @@
import android.widget.ListView;
import android.widget.PopupWindow;
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.annotation.ColorInt;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.v7.widget.AppCompatTextView;
import com.xuexiang.xui.R;
import com.xuexiang.xui.logs.UILog;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinnerBaseAdapter.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinnerBaseAdapter.java
index 0c04b374..02868e9e 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinnerBaseAdapter.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/spinner/materialspinner/MaterialSpinnerBaseAdapter.java
@@ -3,8 +3,8 @@
import android.content.Context;
import android.content.res.Configuration;
import android.os.Build;
-import androidx.annotation.ColorInt;
-import androidx.annotation.DrawableRes;
+import android.support.annotation.ColorInt;
+import android.support.annotation.DrawableRes;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/CustomStateOptions.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/CustomStateOptions.java
index 267ce900..df938a30 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/CustomStateOptions.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/CustomStateOptions.java
@@ -2,7 +2,7 @@
import android.view.View;
-import androidx.annotation.DrawableRes;
+import android.support.annotation.DrawableRes;
import java.io.Serializable;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StateLayoutConfig.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StateLayoutConfig.java
index 52ac9581..04e146b2 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StateLayoutConfig.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StateLayoutConfig.java
@@ -2,8 +2,8 @@
import android.view.animation.Animation;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.StringRes;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.StringRes;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StatefulLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StatefulLayout.java
index f3a9b4af..85f1b65c 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StatefulLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/statelayout/StatefulLayout.java
@@ -13,8 +13,8 @@
import android.widget.LinearLayout;
import android.widget.TextView;
-import androidx.annotation.AnimRes;
-import androidx.annotation.StringRes;
+import android.support.annotation.AnimRes;
+import android.support.annotation.StringRes;
import com.xuexiang.xui.R;
import com.xuexiang.xui.UIConfig;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/EasyIndicator.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/EasyIndicator.java
index 51b9308d..8897917a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/EasyIndicator.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/EasyIndicator.java
@@ -23,13 +23,11 @@
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Color;
-
-import androidx.appcompat.widget.LinearLayoutCompat;
-import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
-import androidx.viewpager.widget.ViewPager;
-import androidx.viewpager.widget.PagerAdapter;
-
import android.graphics.Typeface;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.support.v4.view.animation.FastOutSlowInInterpolator;
+import android.support.v7.widget.LinearLayoutCompat;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/MultiTabControlView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/MultiTabControlView.java
index 2c801faa..14a0f8e3 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/MultiTabControlView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/MultiTabControlView.java
@@ -32,7 +32,7 @@
import android.widget.CompoundButton;
import android.widget.LinearLayout;
-import androidx.annotation.NonNull;
+import android.support.annotation.NonNull;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/TabSegment.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/TabSegment.java
index a543c5fd..a157181a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/TabSegment.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/TabSegment.java
@@ -41,14 +41,14 @@
import android.widget.RelativeLayout;
import android.widget.TextView;
-import androidx.annotation.ColorInt;
-import androidx.annotation.IntDef;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.appcompat.widget.AppCompatTextView;
-import androidx.core.content.ContextCompat;
-import androidx.viewpager.widget.PagerAdapter;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.ColorInt;
+import android.support.annotation.IntDef;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
+import android.support.v7.widget.AppCompatTextView;
+import android.support.v4.content.ContextCompat;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/VerticalTabLayout.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/VerticalTabLayout.java
index 0c333a95..ac11b700 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/VerticalTabLayout.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/VerticalTabLayout.java
@@ -30,11 +30,11 @@
import android.widget.LinearLayout;
import android.widget.ScrollView;
-import androidx.annotation.Nullable;
-import androidx.fragment.app.Fragment;
-import androidx.fragment.app.FragmentManager;
-import androidx.viewpager.widget.PagerAdapter;
-import androidx.viewpager.widget.ViewPager;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.DensityUtils;
@@ -47,8 +47,8 @@
import java.util.ArrayList;
import java.util.List;
-import static androidx.viewpager.widget.ViewPager.SCROLL_STATE_IDLE;
-import static androidx.viewpager.widget.ViewPager.SCROLL_STATE_SETTLING;
+import static android.support.v4.view.ViewPager.SCROLL_STATE_IDLE;
+import static android.support.v4.view.ViewPager.SCROLL_STATE_SETTLING;
/**
* 垂直方向上的TabLayout
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/XUIItemViewsAdapter.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/XUIItemViewsAdapter.java
index 2a42150f..892f01e4 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/XUIItemViewsAdapter.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/XUIItemViewsAdapter.java
@@ -16,13 +16,12 @@
package com.xuexiang.xui.widget.tabbar;
+import android.support.v4.util.Pools;
+import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
-import androidx.core.util.Pools;
-import androidx.recyclerview.widget.RecyclerView;
-
import com.xuexiang.xui.R;
import java.util.ArrayList;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/TabFragmentManager.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/TabFragmentManager.java
index 309350db..16cb8e14 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/TabFragmentManager.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/TabFragmentManager.java
@@ -16,9 +16,9 @@
package com.xuexiang.xui.widget.tabbar.vertical;
-import androidx.fragment.app.Fragment;
-import androidx.fragment.app.FragmentManager;
-import androidx.fragment.app.FragmentTransaction;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.app.FragmentTransaction;
import com.xuexiang.xui.widget.tabbar.VerticalTabLayout;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/XTabView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/XTabView.java
index 25bd5d08..2665e09a 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/XTabView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/tabbar/vertical/XTabView.java
@@ -26,8 +26,8 @@
import android.widget.ImageView;
import android.widget.TextView;
-import androidx.annotation.Px;
-import androidx.annotation.RequiresApi;
+import android.support.annotation.Px;
+import android.support.annotation.RequiresApi;
import com.xuexiang.xui.XUI;
import com.xuexiang.xui.utils.DensityUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/AutoMoveTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/AutoMoveTextView.java
index bcc92a67..dcd71b27 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/AutoMoveTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/AutoMoveTextView.java
@@ -1,11 +1,10 @@
package com.xuexiang.xui.widget.textview;
import android.content.Context;
+import android.support.v7.widget.AppCompatTextView;
import android.text.TextUtils;
import android.util.AttributeSet;
-import androidx.appcompat.widget.AppCompatTextView;
-
/**
* 自定义跑马灯Textview类
*
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/BadgeView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/BadgeView.java
index 8afe3ed7..dac56408 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/BadgeView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/BadgeView.java
@@ -35,7 +35,7 @@
import android.widget.FrameLayout.LayoutParams;
import android.widget.TabWidget;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.v7.widget.AppCompatTextView;
/**
* 数字提示
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/ExpandableTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/ExpandableTextView.java
index bd9eae14..cf3c7422 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/ExpandableTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/ExpandableTextView.java
@@ -6,6 +6,9 @@
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.NonNull;
+import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.SparseBooleanArray;
@@ -19,10 +22,6 @@
import android.widget.LinearLayout;
import android.widget.TextView;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-
import com.xuexiang.xui.R;
import com.xuexiang.xui.utils.ResUtils;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/MarqueeTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/MarqueeTextView.java
index fce6869c..6b570e3f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/MarqueeTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/MarqueeTextView.java
@@ -9,7 +9,7 @@
import android.text.TextUtils;
import android.util.AttributeSet;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.v7.widget.AppCompatTextView;
import com.xuexiang.xui.R;
import com.xuexiang.xui.widget.textview.marqueen.DisplayEntity;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/autofit/AutoFitTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/autofit/AutoFitTextView.java
index 2bd02795..d92b0ef0 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/autofit/AutoFitTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/autofit/AutoFitTextView.java
@@ -21,7 +21,7 @@
import android.util.AttributeSet;
import android.util.TypedValue;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.v7.widget.AppCompatTextView;
/**
* 能够自适应字体大小的TextView
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelButtonView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelButtonView.java
index a57d99a6..a9a42990 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelButtonView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelButtonView.java
@@ -4,7 +4,7 @@
import android.graphics.Canvas;
import android.util.AttributeSet;
-import androidx.appcompat.widget.AppCompatButton;
+import android.support.v7.widget.AppCompatButton;
/**
* 标签按钮
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelImageView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelImageView.java
index e69add2c..38f144be 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelImageView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelImageView.java
@@ -4,7 +4,7 @@
import android.graphics.Canvas;
import android.util.AttributeSet;
-import androidx.appcompat.widget.AppCompatImageView;
+import android.support.v7.widget.AppCompatImageView;
/**
* 标签图片
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelTextView.java
index ddf0f7cf..6794388e 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelTextView.java
@@ -4,7 +4,7 @@
import android.graphics.Canvas;
import android.util.AttributeSet;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.v7.widget.AppCompatTextView;
/**
* 标签文字
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelView.java
index 1f1502da..a602c52f 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/label/LabelView.java
@@ -32,7 +32,7 @@
import android.widget.FrameLayout.LayoutParams;
import android.widget.RelativeLayout;
-import androidx.appcompat.widget.AppCompatTextView;
+import android.support.v7.widget.AppCompatTextView;
import java.util.concurrent.atomic.AtomicInteger;
@@ -115,6 +115,7 @@ public void setTargetView(View target, int distance, Gravity gravity) {
ViewTreeObserver vto = getViewTreeObserver();
vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
+ @Override
public void onGlobalLayout() {
getViewTreeObserver().removeGlobalOnLayoutListener(this);
calcOffset(getMeasuredWidth(), d, g, v.getMeasuredWidth(), false);
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperButton.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperButton.java
index 23c88a70..1e9a4511 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperButton.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperButton.java
@@ -8,7 +8,7 @@
import android.util.AttributeSet;
import android.view.Gravity;
-import androidx.appcompat.widget.AppCompatButton;
+import android.support.v7.widget.AppCompatButton;
import com.xuexiang.xui.R;
import com.xuexiang.xui.widget.alpha.IAlphaViewHelper;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperTextView.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperTextView.java
index c32e1876..7e7f3e09 100755
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperTextView.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/textview/supertextview/SuperTextView.java
@@ -8,8 +8,8 @@
import android.graphics.drawable.StateListDrawable;
import android.os.Build;
-import androidx.annotation.Nullable;
-import androidx.appcompat.widget.AppCompatEditText;
+import android.support.annotation.Nullable;
+import android.support.v7.widget.AppCompatEditText;
import android.text.TextUtils;
import android.text.method.PasswordTransformationMethod;
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/Utils.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/Utils.java
index 7a19c6da..3f8ed196 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/Utils.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/Utils.java
@@ -7,12 +7,12 @@
import android.os.Build;
import android.view.View;
-import androidx.annotation.ColorInt;
-import androidx.annotation.ColorRes;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.NonNull;
-import androidx.appcompat.content.res.AppCompatResources;
-import androidx.core.content.ContextCompat;
+import android.support.annotation.ColorInt;
+import android.support.annotation.ColorRes;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.NonNull;
+import android.support.v7.content.res.AppCompatResources;
+import android.support.v4.content.ContextCompat;
import com.xuexiang.xui.R;
@@ -47,10 +47,11 @@ static Drawable tint9PatchDrawableFrame(@NonNull Context context, @ColorInt int
}
static void setBackground(@NonNull View view, Drawable drawable) {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
view.setBackground(drawable);
- else
+ } else {
view.setBackgroundDrawable(drawable);
+ }
}
static Drawable getDrawable(@NonNull Context context, @DrawableRes int id) {
diff --git a/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/XToast.java b/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/XToast.java
index 3fdcd808..bf63a82d 100644
--- a/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/XToast.java
+++ b/xui_lib/src/main/java/com/xuexiang/xui/widget/toast/XToast.java
@@ -11,13 +11,13 @@
import android.widget.TextView;
import android.widget.Toast;
-import androidx.annotation.CheckResult;
-import androidx.annotation.ColorInt;
-import androidx.annotation.ColorRes;
-import androidx.annotation.DrawableRes;
-import androidx.annotation.IntRange;
-import androidx.annotation.NonNull;
-import androidx.annotation.StringRes;
+import android.support.annotation.CheckResult;
+import android.support.annotation.ColorInt;
+import android.support.annotation.ColorRes;
+import android.support.annotation.DrawableRes;
+import android.support.annotation.IntRange;
+import android.support.annotation.NonNull;
+import android.support.annotation.StringRes;
import com.xuexiang.xui.R;
import com.xuexiang.xui.XUI;
diff --git a/xui_lib/src/main/res/layout/gcv_layout_image.xml b/xui_lib/src/main/res/layout/gcv_layout_image.xml
index ed9e5802..235ec93b 100755
--- a/xui_lib/src/main/res/layout/gcv_layout_image.xml
+++ b/xui_lib/src/main/res/layout/gcv_layout_image.xml
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-