Skip to content

Commit 4f9f6b9

Browse files
committed
Released a new verison 2.0.2
1 parent a236864 commit 4f9f6b9

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Could get HSV color, RGB values, Html color code from your gallery pictures or c
1717
#### build.gradle
1818
```gradle
1919
dependencies {
20-
implementation "com.github.skydoves:colorpickerpreference:2.0.1"
20+
implementation "com.github.skydoves:colorpickerpreference:2.0.2"
2121
}
2222
```
2323

@@ -164,12 +164,14 @@ ColorPickerPreference is used in PreferenceScreen and shows ColorPickerDialog if
164164
android:key="@string/ToolbarColorPickerPreference"
165165
android:title="Toolbar Color"
166166
android:summary="changes toolbar color"
167-
app:preference_dialog_title="Toolbar ColorPickerDialog"
168-
app:preference_dialog_positive="@string/confirm"
169-
app:preference_dialog_negative="@string/cancel"
170-
app:preference_palette="@drawable/palette"
171-
app:preference_selector="@drawable/wheel"
172-
app:default_color="@color/colorPrimary"/>
167+
app:preference_attachAlphaSlideBar="false" // attach an alpha slide bar or not.
168+
app:preference_attachBrightnessSlideBar="true" // attach a brightness slide bar or not.
169+
app:preference_colorBox_radius="26dp" // radius of the color box. we can make it circular using this.
170+
app:preference_dialog_negative="@string/cancel" // string for closing the dialog.
171+
app:preference_dialog_positive="@string/confirm" // string for confirming the dialog.
172+
app:preference_dialog_title="Toolbar ColorPickerDialog" // title string to the dialog.
173+
app:preference_palette="@drawable/palettebar" // a palette drawable to the ColorPickerView.
174+
app:preference_selector="@drawable/wheel" // a selector drawable to the ColorPickerView.
173175
```
174176

175177
#### customizing

app/src/main/res/xml/pref_settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
android:key="@string/ToolbarColorPickerPreference"
1818
android:summary="changes toolbar color"
1919
android:title="Toolbar Color"
20-
app:preference_colorBox_radius="26dp"
2120
app:default_color="@color/colorPrimary"
2221
app:iconSpaceReserved="false"
2322
app:preference_attachAlphaSlideBar="false"
2423
app:preference_attachBrightnessSlideBar="true"
24+
app:preference_colorBox_radius="26dp"
2525
app:preference_dialog_negative="@string/cancel"
2626
app:preference_dialog_positive="@string/confirm"
2727
app:preference_dialog_title="Toolbar ColorPickerDialog"

dependencies.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ext.versions = [
22
minSdk : 16,
33
compileSdk : 30,
4-
versionCode : 12,
5-
versionName : '2.0.1',
4+
versionCode : 13,
5+
versionName : '2.0.2',
66

77
gradleBuildTool : '3.6.3',
88
spotlessGradle : '5.1.1',

0 commit comments

Comments
 (0)