File tree Expand file tree Collapse file tree 8 files changed +25
-17
lines changed
java/com/chad/baserecyclerviewadapterhelper
src/main/java/com/chad/library/adapter/base/diff Expand file tree Collapse file tree 8 files changed +25
-17
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ android {
5
5
6
6
defaultConfig {
7
7
applicationId " com.chad.baserecyclerviewadapterhelper"
8
- minSdkVersion 14
8
+ minSdkVersion 16
9
9
targetSdkVersion 28
10
10
versionCode 5
11
11
versionName " 2.1"
@@ -28,7 +28,7 @@ dependencies {
28
28
implementation project(path : ' :library' )
29
29
implementation ' com.google.android.material:material:1.0.0'
30
30
implementation ' androidx.cardview:cardview:1.0.0'
31
- implementation ' androidx.appcompat:appcompat:1.0.0 '
31
+ implementation ' androidx.appcompat:appcompat:1.0.2 '
32
32
implementation ' com.kyleduo.switchbutton:library:2.0.0'
33
33
implementation ' com.orhanobut:logger:2.2.0'
34
34
}
Original file line number Diff line number Diff line change 1
1
package com .chad .baserecyclerviewadapterhelper ;
2
2
3
3
import android .os .Bundle ;
4
- import android . support . v7 . widget . RecyclerView ;
4
+
5
5
import android .view .View ;
6
6
import android .view .ViewGroup ;
7
7
import android .widget .Button ;
8
8
import android .widget .TextView ;
9
9
10
+ import androidx .recyclerview .widget .RecyclerView ;
11
+
10
12
import com .chad .baserecyclerviewadapterhelper .adapter .diffUtil .DiffDemoCallback ;
11
13
import com .chad .baserecyclerviewadapterhelper .adapter .diffUtil .DiffUtilAdapter ;
12
14
import com .chad .baserecyclerviewadapterhelper .base .BaseActivity ;
Original file line number Diff line number Diff line change 1
1
package com .chad .baserecyclerviewadapterhelper .adapter .diffUtil ;
2
2
3
- import android .support .annotation .NonNull ;
4
- import android .support .annotation .Nullable ;
3
+
4
+
5
+ import androidx .annotation .NonNull ;
6
+ import androidx .annotation .Nullable ;
5
7
6
8
import com .chad .baserecyclerviewadapterhelper .entity .DiffUtilDemoEntity ;
7
9
import com .chad .library .adapter .base .diff .BaseQuickDiffCallback ;
Original file line number Diff line number Diff line change 1
1
package com .chad .baserecyclerviewadapterhelper .adapter .diffUtil ;
2
2
3
- import android .support .annotation .NonNull ;
3
+
4
+ import androidx .annotation .NonNull ;
4
5
5
6
import com .chad .baserecyclerviewadapterhelper .R ;
6
7
import com .chad .baserecyclerviewadapterhelper .entity .DiffUtilDemoEntity ;
Original file line number Diff line number Diff line change 2
2
3
3
import android .graphics .Rect ;
4
4
import android .os .Build ;
5
- import android .support .annotation .NonNull ;
6
- import android .support .annotation .Nullable ;
7
- import android .support .annotation .RequiresApi ;
8
- import android .support .v7 .widget .GridLayoutManager ;
9
- import android .support .v7 .widget .RecyclerView ;
5
+
10
6
import android .util .DisplayMetrics ;
11
7
import android .util .Log ;
12
8
import android .util .LongSparseArray ;
13
9
import android .util .TypedValue ;
14
10
import android .view .View ;
15
11
12
+ import androidx .annotation .NonNull ;
13
+ import androidx .annotation .Nullable ;
14
+ import androidx .annotation .RequiresApi ;
15
+ import androidx .recyclerview .widget .GridLayoutManager ;
16
+ import androidx .recyclerview .widget .RecyclerView ;
17
+
16
18
import com .chad .library .adapter .base .BaseSectionMultiItemQuickAdapter ;
17
19
import com .chad .library .adapter .base .BaseViewHolder ;
18
20
import com .chad .library .adapter .base .entity .SectionMultiEntity ;
Original file line number Diff line number Diff line change 5
5
android : layout_height =" match_parent"
6
6
android : orientation =" vertical" >
7
7
8
- <android .support.v7 .widget.RecyclerView
8
+ <androidx .recyclerview .widget.RecyclerView
9
9
android : id =" @+id/diff_rv"
10
10
android : layout_width =" match_parent"
11
11
android : layout_height =" 0dp"
12
12
android : layout_weight =" 1"
13
- app : layoutManager =" android.support.v7 .widget.LinearLayoutManager" />
13
+ app : layoutManager =" androidx.recyclerview .widget.LinearLayoutManager" />
14
14
15
15
<LinearLayout
16
16
android : layout_width =" match_parent"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ android {
3
3
compileSdkVersion 28
4
4
5
5
defaultConfig {
6
- minSdkVersion 14
6
+ minSdkVersion 16
7
7
targetSdkVersion 28
8
8
versionCode 1
9
9
versionName " 1.0"
Original file line number Diff line number Diff line change 1
1
package com .chad .library .adapter .base .diff ;
2
2
3
- import android .support .annotation .NonNull ;
4
- import android .support .annotation .Nullable ;
5
- import android .support .v7 .util .ListUpdateCallback ;
3
+
4
+ import androidx .annotation .NonNull ;
5
+ import androidx .annotation .Nullable ;
6
+ import androidx .recyclerview .widget .ListUpdateCallback ;
6
7
7
8
import com .chad .library .adapter .base .BaseQuickAdapter ;
8
9
You can’t perform that action at this time.
0 commit comments