File tree 4 files changed +16
-12
lines changed
java/examples/android/com/recyclerviewanimations
4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ android {
21
21
dependencies {
22
22
testImplementation ' junit:junit:4.12'
23
23
24
- implementation ' com.android.support :appcompat-v7:28.0 .0'
25
- implementation ' com.android.support :recyclerview-v7:28 .0.0'
24
+ implementation ' androidx.appcompat :appcompat:1.1 .0'
25
+ implementation ' androidx.recyclerview :recyclerview:1 .0.0'
26
26
}
Original file line number Diff line number Diff line change 24
24
import android .content .Context ;
25
25
import android .graphics .Color ;
26
26
import android .graphics .drawable .ColorDrawable ;
27
- import android .support .annotation .NonNull ;
28
- import android .support .v4 .util .ArrayMap ;
29
- import android .support .v7 .app .AppCompatActivity ;
30
27
import android .os .Bundle ;
31
- import android .support .v7 .widget .DefaultItemAnimator ;
32
- import android .support .v7 .widget .LinearLayoutManager ;
33
- import android .support .v7 .widget .RecyclerView ;
34
28
import android .view .View ;
35
29
import android .view .ViewGroup ;
36
30
import android .view .animation .AccelerateInterpolator ;
41
35
import android .widget .RadioGroup ;
42
36
import android .widget .TextView ;
43
37
38
+ import androidx .annotation .NonNull ;
39
+ import androidx .appcompat .app .AppCompatActivity ;
40
+ import androidx .collection .ArrayMap ;
41
+ import androidx .recyclerview .widget .DefaultItemAnimator ;
42
+ import androidx .recyclerview .widget .LinearLayoutManager ;
43
+ import androidx .recyclerview .widget .RecyclerView ;
44
+
44
45
import java .util .ArrayList ;
45
46
import java .util .List ;
46
47
Original file line number Diff line number Diff line change 25
25
android : orientation =" vertical"
26
26
tools : context =" examples.android.com.recyclerviewanimations.MainActivity" >
27
27
28
- <android .support.v7 .widget.RecyclerView
28
+ <androidx .recyclerview .widget.RecyclerView
29
29
android : id =" @+id/recyclerview"
30
30
android : layout_width =" match_parent"
31
31
android : layout_height =" 0dp"
32
- android : layout_weight =" 1"
33
- />
32
+ android : layout_weight =" 1" />
34
33
35
34
<RadioGroup xmlns : android =" http://schemas.android.com/apk/res/android"
36
35
android : layout_width =" fill_parent"
Original file line number Diff line number Diff line change 15
15
# When configured, Gradle will run in incubating parallel mode.
16
16
# This option should only be used with decoupled projects. More details, visit
17
17
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
- # org.gradle.parallel=true
18
+ # org.gradle.parallel=true
19
+
20
+ # Android X
21
+ android.enableJetifier =true
22
+ android.useAndroidX =true
You can’t perform that action at this time.
0 commit comments