11# ColorSheet
2-
32A color picker bottom sheet
43
4+ [ ![ Download] ( https://api.bintray.com/packages/sasikanthmiriyampalli/maven/color-sheet/images/download.svg?version=1.0.0 ) ] ( https://bintray.com/sasikanthmiriyampalli/maven/color-sheet/1.0.0/link )
5+
56```
6- TODO: Maven upload pending
7+ implementation "dev.sasikanth:colorsheet:1.0.0"
78```
89
910## Usage
10-
1111** Default color sheet, it will show grid of colors**
1212
1313<img width =" 300 " alt =" portfolio_view " src =" ./art/color_sheet.png " >
@@ -17,10 +17,11 @@ A color picker bottom sheet
1717ColorSheet().colorPicker(
1818 colors = colors,
1919 listener = { color ->
20- // Handle colors
20+ // Handle color
2121 })
2222 .show(supportFragmentManager)
23- ````
23+ ```
24+
2425---
2526
2627** Color sheet with "no color" option**
@@ -33,13 +34,13 @@ ColorSheet().colorPicker(
3334 colors = colors,
3435 noColorOption = true,
3536 listener = { color ->
36- // Handle Color
37+ // Handle color
3738 })
3839 .show(supportFragmentManager)
39- ````
40+ ```
4041With this you will get a no color option at start, when user selects this it will return ** ColorSheet.NO_COLOR** .
4142
42- -- -
43+ - - - -
4344
4445To mark the color as selected in color sheet, specify selectedColor in colorPicker
4546
@@ -48,27 +49,23 @@ ColorSheet().colorPicker(
4849 colors = colors,
4950 selectedColor = color,
5051 listener = { color ->
51- // Handle Color
52+ // Handle color
5253 })
5354 .show(supportFragmentManager)
5455```
5556
56- ---
57-
57+ - - - -
5858### Misc
59-
60- **Corner radius**<br>
59+ ** Corner radius**
6160Default corner radius is 4dp. You can set your own corner radius like this
6261```
6362ColorSheet().cornerRadius(8)
6463```
65- <br>
6664
6765** Color to Hex string**
6866```
6967ColorSheetUtils.colorToHex(color)
7068```
71- <br>
7269
7370** Sheet title textAppearance**
7471```
@@ -96,4 +93,3 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9693See the License for the specific language governing permissions and
9794limitations under the License.
9895```
99-
0 commit comments