File tree Expand file tree Collapse file tree 15 files changed +26
-21
lines changed
java/xyz/klinker/android/floating_tutorial
src/main/java/xyz/klinker/floating_tutorial
src/main/java/xyz/klinker/floating_tutorial Expand file tree Collapse file tree 15 files changed +26
-21
lines changed Original file line number Diff line number Diff line change 1414# limitations under the License.
1515#
1616
17+ android.useAndroidX =true
18+ android.enableJetifier =true
19+
1720GRADLE_PLUGIN_VERSION =3.3.2
1821KOTLIN_VERSION =1.3.21
19-
20- ANDROID_SUPPORT_VERSION =28.0.0
22+ ANDROID_X_VERSION =1.0.2
2123
2224MIN_SDK =15
2325TARGET_SDK =28
Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ android {
5151
5252dependencies {
5353 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$KOTLIN_VERSION "
54- implementation " com.android.support :appcompat-v7: $A NDROID_SUPPORT_VERSION "
55- implementation " com.android.support:cardview-v7: $A NDROID_SUPPORT_VERSION "
54+ implementation " androidx.appcompat :appcompat: $A NDROID_X_VERSION "
55+ implementation ' com.google. android.material:material:1.0.0 '
5656
5757 testImplementation ' junit:junit:4.12'
58- testImplementation " org.robolectric:robolectric:3.8"
58+ testImplementation ' org.robolectric:robolectric:3.8'
5959 testImplementation ' org.mockito:mockito-core:2.18.3'
6060}
6161
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import android.graphics.Color
2020import android.os.Build
2121import android.os.Bundle
2222import android.os.Handler
23- import android.support.v7 .app.AppCompatActivity
23+ import androidx.appcompat .app.AppCompatActivity
2424import android.view.View
2525import android.widget.FrameLayout
2626
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ package xyz.klinker.android.floating_tutorial
1818
1919import android.content.Intent
2020import android.graphics.Color
21- import android.support .annotation.*
22- import android.support.v7 .widget.CardView
21+ import androidx .annotation.*
22+ import androidx.cardview .widget.CardView
2323import android.view.Gravity
2424import android.view.View
2525import android.view.ViewGroup
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import android.animation.Animator
2020import android.animation.AnimatorListenerAdapter
2121import android.annotation.SuppressLint
2222import android.os.Build
23- import android.support .annotation.VisibleForTesting
23+ import androidx .annotation.VisibleForTesting
2424import android.view.View
2525import android.view.ViewAnimationUtils
2626
Original file line number Diff line number Diff line change 1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <!--
1+ <?xml version =" 1.0" encoding =" utf-8" ?><!--
32 ~ Copyright (C) 2017 Luke Klinker
43 ~
54 ~ Licensed under the Apache License, Version 2.0 (the "License");
1514 ~ limitations under the License.
1615 -->
1716
18- <android .support.v7 .widget.CardView xmlns : android =" http://schemas.android.com/apk/res/android"
17+ <androidx .cardview .widget.CardView xmlns : android =" http://schemas.android.com/apk/res/android"
1918 xmlns : app =" http://schemas.android.com/apk/res-auto"
2019 android : layout_width =" wrap_content"
2120 android : layout_height =" wrap_content"
5150
5251 <Button
5352 android : id =" @+id/tutorial_next_button"
53+ style =" @style/Widget.MaterialComponents.Button.TextButton"
54+ app : rippleColor =" @color/tutorial_ripple_color"
5455 android : layout_width =" wrap_content"
5556 android : layout_height =" wrap_content"
5657 android : layout_gravity =" end"
6465
6566 </LinearLayout >
6667
67- </android .support.v7 .widget.CardView>
68+ </androidx .cardview .widget.CardView>
Original file line number Diff line number Diff line change 1616
1717<resources >
1818
19- <style name =" tutorial_FloatingTutorialTheme" parent =" @style/ Theme.AppCompat .Light.NoActionBar" >
19+ <style name =" tutorial_FloatingTutorialTheme" parent =" Theme.MaterialComponents .Light.NoActionBar" >
2020 <item name =" colorAccent" >@android:color/white</item >
2121 <item name =" android:background" >@android:color/transparent</item >
2222 <item name =" android:windowNoTitle" >true</item >
Original file line number Diff line number Diff line change 1818<resources >
1919
2020 <color name =" tutorial_background_dim" >#55000000</color >
21+ <color name =" tutorial_ripple_color" >#EEEEEE</color >
2122 <color name =" tutorial_light_background_indicator" >#AA000000</color >
2223 <color name =" tutorial_dark_background_indicator" >#EEFFFFFF</color >
2324
Original file line number Diff line number Diff line change 1616
1717<resources >
1818
19- <style name =" tutorial_FloatingTutorialTheme" parent =" @style/ Theme.AppCompat .Light.NoActionBar" >
19+ <style name =" tutorial_FloatingTutorialTheme" parent =" Theme.MaterialComponents .Light.NoActionBar" >
2020 <item name =" colorAccent" >@android:color/white</item >
2121 <item name =" android:background" >@android:color/transparent</item >
2222 <item name =" android:windowNoTitle" >true</item >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ android {
5454}
5555
5656dependencies {
57- implementation " com.android.support :appcompat-v7: $A NDROID_SUPPORT_VERSION "
57+ implementation " androidx.appcompat :appcompat: $A NDROID_X_VERSION "
5858
5959 implementation project(" :library" )
6060 implementation project(" :sample-shared" )
You can’t perform that action at this time.
0 commit comments