File tree Expand file tree Collapse file tree 8 files changed +23
-16
lines changed
src/main/java/com/daimajia/swipedemo Expand file tree Collapse file tree 8 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ buildscript {
66 maven {
77 url " https://jitpack.io"
88 }
9+ google()
910 }
1011 dependencies {
11- classpath ' com.android.tools.build:gradle:2.3.0 '
12+ classpath ' com.android.tools.build:gradle:4.1.2 '
1213 classpath ' com.github.dcendents:android-maven-plugin:1.2'
1314
1415 // NOTE: Do not place your application dependencies here; they belong
@@ -22,5 +23,6 @@ allprojects {
2223 maven {
2324 url " https://jitpack.io"
2425 }
26+ google()
2527 }
2628}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ android {
2626
2727dependencies {
2828 compile project(" :library" )
29- compile ' com.android.support :recyclerview-v7:25.1.1 '
29+ compile ' androidx.recyclerview :recyclerview:1.0.0 '
3030 compile ' com.daimajia.easing:library:1.0.0@aar'
3131 compile ' com.daimajia.androidanimations:library:1.1.2@aar'
3232 compile ' com.nineoldandroids:library:2.4.0'
Original file line number Diff line number Diff line change 55import android .content .Intent ;
66import android .os .Build ;
77import android .os .Bundle ;
8- import android .support .v7 .widget .LinearLayoutManager ;
9- import android .support .v7 .widget .RecyclerView ;
108import android .util .Log ;
119import android .view .Menu ;
1210import android .view .MenuItem ;
1311
12+ import androidx .recyclerview .widget .DividerItemDecoration ;
13+ import androidx .recyclerview .widget .LinearLayoutManager ;
14+ import androidx .recyclerview .widget .RecyclerView ;
15+
1416import com .daimajia .swipe .util .Attributes ;
1517import com .daimajia .swipedemo .adapter .RecyclerViewAdapter ;
16- import com .daimajia .swipedemo .adapter .util .DividerItemDecoration ;
1718
1819import java .util .ArrayList ;
1920import java .util .Arrays ;
@@ -52,7 +53,7 @@ protected void onCreate(Bundle savedInstanceState) {
5253 recyclerView .setLayoutManager (new LinearLayoutManager (this ));
5354
5455 // Item Decorator:
55- recyclerView .addItemDecoration (new DividerItemDecoration (getResources (). getDrawable (R .drawable .divider )));
56+ recyclerView .addItemDecoration (new DividerItemDecoration (this , (R .drawable .divider )));
5657 recyclerView .setItemAnimator (new FadeInLeftAnimator ());
5758
5859 // Adapter:
Original file line number Diff line number Diff line change 11package com .daimajia .swipedemo .adapter ;
22
33import android .content .Context ;
4- import android . support . v7 . widget . RecyclerView ;
4+
55import android .util .Log ;
66import android .view .LayoutInflater ;
77import android .view .View ;
88import android .view .ViewGroup ;
99import android .widget .Button ;
1010import android .widget .TextView ;
1111import android .widget .Toast ;
12-
12+ import androidx . recyclerview . widget . RecyclerView ;
1313import com .daimajia .androidanimations .library .Techniques ;
1414import com .daimajia .androidanimations .library .YoYo ;
1515import com .daimajia .swipe .SimpleSwipeListener ;
Original file line number Diff line number Diff line change 55import android .graphics .Canvas ;
66import android .graphics .Rect ;
77import android .graphics .drawable .Drawable ;
8- import android .support .v7 .widget .LinearLayoutManager ;
9- import android .support .v7 .widget .RecyclerView ;
108import android .util .AttributeSet ;
119import android .view .View ;
1210
11+ import androidx .recyclerview .widget .LinearLayoutManager ;
12+ import androidx .recyclerview .widget .RecyclerView ;
13+
1314public class DividerItemDecoration extends RecyclerView .ItemDecoration {
1415
1516 private Drawable mDivider ;
Original file line number Diff line number Diff line change 11package com .daimajia .swipedemo .adapter .util ;
22
33import android .content .Context ;
4- import android .support .v7 .widget .RecyclerView ;
54import android .view .GestureDetector ;
65import android .view .MotionEvent ;
76import android .view .View ;
87
8+ import androidx .recyclerview .widget .RecyclerView ;
9+
910public class RecyclerItemClickListener implements RecyclerView .OnItemTouchListener {
1011 private OnItemClickListener mListener ;
1112
Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ VERSION_NAME=1.2.0
2222VERSION_CODE =22
2323GROUP =com.daimajia.swipelayout
2424
25- ANDROID_BUILD_MIN_SDK_VERSION =9
26- ANDROID_BUILD_TARGET_SDK_VERSION =25
27- ANDROID_BUILD_SDK_VERSION =25
25+ ANDROID_BUILD_MIN_SDK_VERSION =21
26+ ANDROID_BUILD_TARGET_SDK_VERSION =29
27+ ANDROID_BUILD_SDK_VERSION =29
2828ANDROID_BUILD_TOOLS_VERSION =25.0.2
29+ android.useAndroidX =true
30+ android.enableJetifier =true
Original file line number Diff line number Diff line change 1- # Thu Mar 09 16:07:03 CST 2017
1+ # Tue Feb 23 16:45:22 IST 2021
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-3.3-all .zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.5-bin .zip
You can’t perform that action at this time.
0 commit comments