77<p align =" center " >
88 <a href =" https://devlibrary.withgoogle.com/products/android/repos/skydoves-colorpickerview " ><img alt =" Google " src =" https://skydoves.github.io/badges/google-devlib.svg " /></a ><br >
99 <a href =" https://opensource.org/licenses/Apache-2.0 " ><img alt =" License " src =" https://img.shields.io/badge/License-Apache%202.0-blue.svg " /></a >
10- <a href =" https://android-arsenal.com/api?level=15 " ><img alt =" API " src =" https://img.shields.io/badge/API-15 %2B-brightgreen.svg?style=flat " /></a >
10+ <a href =" https://android-arsenal.com/api?level=21 " ><img alt =" API " src =" https://img.shields.io/badge/API-21 %2B-brightgreen.svg?style=flat " /></a >
1111 <a href =" https://github.com/skydoves/ColorPickerView/actions " ><img alt =" Build Status " src =" https://github.com/skydoves/ColorPickerView/workflows/Android%20CI/badge.svg " /></a >
1212 <a href =" https://androidweekly.net/issues/issue-316 " ><img alt =" Android Weekly " src =" https://skydoves.github.io/badges/android-weekly.svg " /></a >
1313 <a href =" https://skydoves.github.io/libraries/colorpickerview/javadoc/ " ><img alt =" Javadoc " src =" https://skydoves.github.io/badges/javadoc-colorpicker.svg " /></a >
@@ -69,7 +69,7 @@ __[7. ColorPickerView Methods](https://github.com/skydoves/ColorPickerView#color
6969__ [ 8. Other Libraries] ( https://github.com/skydoves/ColorPickerView#other-libraries ) __ <br >
7070
7171## Usage
72- Add following XML namespace inside your XML layout file.
72+ Add the following XML namespace inside your XML layout file.
7373
7474``` gradle
7575xmlns:app="http://schemas.android.com/apk/res-auto"
@@ -94,7 +94,7 @@ You can customize the palette image and selector or various options using the be
9494app:palette="@drawable/palette" // sets a custom palette image.
9595app:selector="@drawable/colorpickerview_wheel" // sets a custom selector image.
9696app:selector_size="32dp" // sets a width & height size of the selector.
97- app:alpha_selector="0.8" // sets an alpha of thr selector.
97+ app:alpha_selector="0.8" // sets an alpha of the selector.
9898app:alpha_flag="0.8" // sets an alpha of the flag.
9999app:actionMode="last" // sets action mode 'always' or 'last'.
100100// set an initial position of the selector using a specific color. This attribute will work with only a default HSV palette.
@@ -188,7 +188,7 @@ You can create an instance of `ColorPickerView` using `ColorPickerView.Builder`
188188``` java
189189ColorPickerView colorPickerView = new ColorPickerView .Builder (context)
190190 .setColorListener(colorListener)
191- .setPreferenceName(" MyColorPicker" );
191+ .setPreferenceName(" MyColorPicker" )
192192 .setActionMode(ActionMode . LAST )
193193 .setAlphaSlideBar(alphaSlideBar)
194194 .setBrightnessSlideBar(brightnessSlideBar)
@@ -222,7 +222,7 @@ colorPickerView.setPreferenceName("MyColorPicker");
222222```
223223
224224This is how to save the states of ` ColorPickerView ` .<br >
225- The ` setLifecycleOwner() ` method saves all of the states automatically when the ` lifecycleOwner ` is destroy .
225+ The ` setLifecycleOwner() ` method saves all of the states automatically when the ` lifecycleOwner ` is destroyed .
226226
227227``` java
228228colorPickerView. setLifecycleOwner(this );
@@ -302,7 +302,7 @@ AlphaSlideBar alphaSlideBar = findViewById(R.id.alphaSlideBar);
302302colorPickerView. attachAlphaSlider(alphaSlideBar);
303303```
304304
305- If you want to implement a vertical style of slides , you can achieve it with the ` rotation ` attributes.
305+ If you want to implement a vertical style of sliders , you can achieve it with the ` rotation ` attributes.
306306
307307``` gradle
308308android:layout_width="280dp" // width must set a specific width size.
@@ -333,7 +333,7 @@ BrightnessSlideBar brightnessSlideBar = findViewById(R.id.brightnessSlide);
333333colorPickerView. attachBrightnessSlider(brightnessSlideBar);
334334```
335335
336- If you want to implement a vertical style of slides , you can achieve it with the ` rotation ` attributes.
336+ If you want to implement a vertical style of sliders , you can achieve it with the ` rotation ` attributes.
337337
338338``` gradle
339339android:layout_width="280dp" // width must set a specific width size.
@@ -459,7 +459,7 @@ colorPickerView.setFlagView(new CustomFlag(this, R.layout.layout_flag));
459459```
460460
461461### FlagMode
462- ` FlagMode ` is an option to decides the visibility action of the ` FlagView ` .
462+ ` FlagMode ` is an option that decides the visibility action of the ` FlagView ` .
463463
464464``` java
465465colorPickerView. setFlagMode(FlagMode . ALWAYS ); // showing always by tapping and dragging.
@@ -497,8 +497,8 @@ setInitialColor(@ColorInt int color) | void | changes selector's selected point
497497setInitialColorRes(@ColorRes int resource) | void | changes selector's selected point by a specific color initially using a color resource.
498498setActionMode(ActionMode) | void | sets the color listener's trigger action mode.
499499setFlagView(FlagView flagView) | void | sets ` FlagView ` on ` ColorPickerView ` .
500- attachAlphaSlider | void | linking an ` AlphaSlideBar ` on the ` ColorPickerView ` .
501- attachBrightnessSlider | void | linking an ` BrightnessSlideBar ` on the ` ColorPickerView ` .
500+ attachAlphaSlider | void | links an ` AlphaSlideBar ` to the ` ColorPickerView ` .
501+ attachBrightnessSlider | void | links a ` BrightnessSlideBar ` to the ` ColorPickerView ` .
502502
503503## Other Libraries
504504Here are other ColorPicker related libraries!
0 commit comments