File tree Expand file tree Collapse file tree
java/com/skydoves/colorpickerpreferencedemo
src/main/java/com/skydoves/colorpickerpreference Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ android {
88 targetSdkVersion 28
99 versionCode 1
1010 versionName " 1.0"
11- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
11+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
1212 }
1313 buildTypes {
1414 release {
@@ -22,8 +22,8 @@ android {
2222}
2323
2424dependencies {
25- implementation " com.android.support :appcompat-v7: $s upportLibrary "
26- implementation " com.android.support:design: $s upportLibrary "
27- implementation " com.github.skydoves:elasticviews:2.0.0 "
25+ implementation ' androidx.appcompat :appcompat:1.0.2 '
26+ implementation ' com.google. android.material:material:1.1.0-alpha01 '
27+ implementation " com.github.skydoves:elasticviews:2.0.1 "
2828 implementation project(' :colorpickerpreference' )
2929}
Original file line number Diff line number Diff line change 33import android .content .res .Configuration ;
44import android .os .Bundle ;
55import android .preference .PreferenceActivity ;
6- import android . support .annotation .LayoutRes ;
7- import android . support .annotation .Nullable ;
8- import android . support . v7 .app .ActionBar ;
9- import android . support . v7 .app .AppCompatDelegate ;
10- import android . support . v7 .widget .Toolbar ;
6+ import androidx .annotation .LayoutRes ;
7+ import androidx .annotation .Nullable ;
8+ import androidx . appcompat .app .ActionBar ;
9+ import androidx . appcompat .app .AppCompatDelegate ;
10+ import androidx . appcompat .widget .Toolbar ;
1111import android .view .MenuInflater ;
1212import android .view .View ;
1313import android .view .ViewGroup ;
Original file line number Diff line number Diff line change 33import android .content .SharedPreferences ;
44import android .os .Bundle ;
55import android .preference .PreferenceManager ;
6- import android . support .annotation .Nullable ;
7- import android . support . v4 .content .ContextCompat ;
8- import android . support . v7 .app .AppCompatActivity ;
9- import android . support . v7 .widget .Toolbar ;
6+ import androidx .annotation .Nullable ;
7+ import androidx . core .content .ContextCompat ;
8+ import androidx . appcompat .app .AppCompatActivity ;
9+ import androidx . appcompat .widget .Toolbar ;
1010import android .view .View ;
1111import android .widget .ImageView ;
1212import android .widget .TextView ;
Original file line number Diff line number Diff line change 11package com .skydoves .colorpickerpreferencedemo ;
22
33import android .os .Bundle ;
4- import android . support . v4 .content .ContextCompat ;
4+ import androidx . core .content .ContextCompat ;
55import android .view .View ;
66import android .widget .LinearLayout ;
77import android .widget .TextView ;
Original file line number Diff line number Diff line change 33import android .app .AlertDialog ;
44import android .content .DialogInterface ;
55import android .os .Bundle ;
6- import android .support .annotation .Nullable ;
7- import android .widget .LinearLayout ;
8- import android .widget .TextView ;
6+ import androidx .annotation .Nullable ;
97
108import com .skydoves .colorpickerpreference .ColorEnvelope ;
119import com .skydoves .colorpickerpreference .ColorListener ;
1210import com .skydoves .colorpickerpreference .ColorPickerDialog ;
1311import com .skydoves .colorpickerpreference .ColorPickerPreference ;
14- import com .skydoves .colorpickerpreference .ColorPickerView ;
1512import com .skydoves .colorpickerpreference .FlagMode ;
1613
1714/**
Original file line number Diff line number Diff line change 3838 android : text =" ColorPicker Example" />
3939 </com .skydoves.elasticviews.ElasticLayout>
4040
41- <android .support.v4 .widget.Space
41+ <androidx .legacy .widget.Space
4242 android : layout_width =" match_parent"
4343 android : layout_height =" 0dp"
4444 android : layout_weight =" 0.1" />
6464 android : text =" ColorPickerDialog Example" />
6565 </com .skydoves.elasticviews.ElasticLayout>
6666
67- <android .support.v4 .widget.Space
67+ <androidx .legacy .widget.Space
6868 android : layout_width =" match_parent"
6969 android : layout_height =" 0dp"
7070 android : layout_weight =" 0.1" />
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <android .support.v7 .widget.Toolbar xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <androidx .appcompat .widget.Toolbar xmlns : android =" http://schemas.android.com/apk/res/android"
33 android : id =" @+id/toolbar"
44 android : layout_width =" match_parent"
55 android : layout_height =" wrap_content"
2828 android : textSize =" 18dp" />
2929 </LinearLayout >
3030
31- </android .support.v7 .widget.Toolbar>
31+ </androidx .appcompat .widget.Toolbar>
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ buildscript {
1212 }
1313
1414 dependencies {
15- classpath ' com.android.tools.build:gradle:3.1.4 '
16- classpath ' com.novoda:bintray-release:0.8.1 '
15+ classpath " com.android.tools.build:gradle:3.2.1 "
16+ classpath " com.novoda:bintray-release:0.9 "
1717 }
1818}
1919
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ publish {
55 userOrg = ' devmagician'
66 groupId = ' com.github.skydoves'
77 artifactId = ' colorpickerpreference'
8- publishVersion = ' 1.0.5 '
8+ publishVersion = ' 1.0.6 '
99 desc = ' This is ColorPickerPreference by skydoves'
1010 website = ' https://github.com/skydoves/ColorPickerPreference'
1111 issueTracker = " ${ website} /issues"
@@ -21,4 +21,8 @@ android {
2121 versionCode 1
2222 versionName " 1.0"
2323 }
24+ }
25+
26+ dependencies {
27+ implementation " androidx.annotation:annotation:1.0.0"
2428}
Original file line number Diff line number Diff line change 1717
1818package com .skydoves .colorpickerpreference ;
1919
20+ @ SuppressWarnings ({"WeakerAccess" , "unused" })
2021public class ColorEnvelope {
2122 private int color ;
2223 private String htmlCode ;
You can’t perform that action at this time.
0 commit comments