├── .gitignore ├── .idea ├── bytedance_as_plugin.xml ├── caches │ └── build_file_checksums.ser ├── codeStyles │ └── Project.xml ├── compiler.xml ├── dbnavigator.xml ├── encodings.xml ├── gradle.xml ├── jarRepositories.xml ├── misc.xml ├── modules.xml └── vcs.xml ├── LICENSE.md ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── horizon │ │ └── colorpickerdemo │ │ ├── MainActivity.kt │ │ └── ui │ │ ├── ColorPickerActivity.kt │ │ ├── CustomColorFragment.kt │ │ ├── FancyColorPickerActivity.kt │ │ └── PickColorFragment.kt │ └── res │ ├── anim │ ├── slide_left_in.xml │ ├── slide_left_out.xml │ ├── slide_right_in.xml │ └── slide_right_out.xml │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── layout │ ├── activity_color_picker.xml │ ├── activity_fancy_color_picker.xml │ ├── activity_main.xml │ ├── fragment_color_picker.xml │ └── fragment_custom_color.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── values-zh │ └── strings.xml │ └── values │ ├── colors.xml │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── colorpicker ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── horizon │ │ └── colorpicker │ │ ├── palette │ │ ├── ColorPalette.java │ │ └── ColorSquare.java │ │ └── seekbar │ │ ├── AbstractSeekBar.java │ │ ├── BrightnessBar.java │ │ ├── ColorBar.java │ │ ├── HueBar.java │ │ ├── NormalSeekBar.java │ │ ├── SaturationBar.java │ │ ├── Utils.java │ │ └── listener │ │ ├── OnStopTrackingListener.java │ │ └── OnValueChangeListener.java │ └── res │ ├── drawable-xhdpi │ └── icon_check.png │ ├── drawable-xxhdpi │ ├── custom_color.png │ └── seekbar_pointer.png │ └── values │ ├── attrs.xml │ ├── colors.xml │ └── dimens.xml ├── fancypicker ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── horizon │ │ └── fancypicker │ │ ├── ColorPicker.java │ │ └── ColorPickerDialog.java │ └── res │ ├── layout │ └── dialog_color_picker.xml │ ├── values-zh │ └── strings.xml │ └── values │ ├── attrs.xml │ ├── colors.xml │ ├── dimens.xml │ └── strings.xml ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── image ├── colorpicker.gif └── fancypicker.gif └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/bytedance_as_plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BillyWei01/ColorPicker/e08aa944927d4c1fefa99bf175beb8e889cbb821/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 21 | 22 | 26 | 27 | 28 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/dbnavigator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | 29 | 30 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2019 Horizon 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ## ColorPicker 3 | 4 | This project has implement two kinds of color pickers. 5 | 6 | 7 | ### Simple case 8 | 9 | ![](image/colorpicker.gif) 10 | 11 | 12 | ### Fancy case 13 | 14 | ![](image/fancypicker.gif) 15 | 16 | 17 | ## Link 18 | https://juejin.cn/post/6844903908364697613 19 | 20 | ## License 21 | See the [LICENSE](LICENSE.md) file for license rights and limitations. 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | id 'org.jetbrains.kotlin.android' 4 | } 5 | apply plugin: 'kotlin-android-extensions' 6 | 7 | android { 8 | compileSdk 32 9 | 10 | defaultConfig { 11 | applicationId "com.horizon.colorpickerdemo" 12 | minSdk 21 13 | targetSdk 32 14 | versionCode 1 15 | versionName "1.0" 16 | } 17 | 18 | buildTypes { 19 | release { 20 | minifyEnabled false 21 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 22 | } 23 | } 24 | compileOptions { 25 | sourceCompatibility JavaVersion.VERSION_1_8 26 | targetCompatibility JavaVersion.VERSION_1_8 27 | } 28 | } 29 | 30 | dependencies { 31 | implementation fileTree(dir: 'libs', include: ['*.jar']) 32 | implementation 'androidx.core:core-ktx:1.8.0' 33 | implementation 'androidx.appcompat:appcompat:1.4.2' 34 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' 35 | 36 | implementation project(":colorpicker") 37 | implementation project(":fancypicker") 38 | } 39 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/java/com/horizon/colorpickerdemo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.horizon.colorpickerdemo 2 | 3 | import android.content.Intent 4 | import androidx.appcompat.app.AppCompatActivity 5 | import android.os.Bundle 6 | 7 | import com.horizon.colorpickerdemo.ui.ColorPickerActivity 8 | import com.horizon.colorpickerdemo.ui.FancyColorPickerActivity 9 | import kotlinx.android.synthetic.main.activity_main.* 10 | 11 | class MainActivity : AppCompatActivity() { 12 | 13 | override fun onCreate(savedInstanceState: Bundle?) { 14 | super.onCreate(savedInstanceState) 15 | setContentView(R.layout.activity_main) 16 | 17 | pickColorBtn.setOnClickListener{ 18 | startActivity(Intent(this, ColorPickerActivity::class.java)) 19 | } 20 | 21 | pickColorBtn2.setOnClickListener { 22 | startActivity(Intent(this, FancyColorPickerActivity::class.java)) 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/java/com/horizon/colorpickerdemo/ui/ColorPickerActivity.kt: -------------------------------------------------------------------------------- 1 | 2 | package com.horizon.colorpickerdemo.ui 3 | 4 | import android.graphics.Color 5 | import android.os.Bundle 6 | import androidx.appcompat.app.AppCompatActivity 7 | import kotlinx.android.synthetic.main.activity_color_picker.* 8 | import com.horizon.colorpickerdemo.R 9 | 10 | class ColorPickerActivity : AppCompatActivity() { 11 | override fun onCreate(savedInstanceState: Bundle?) { 12 | super.onCreate(savedInstanceState) 13 | setContentView(R.layout.activity_color_picker) 14 | 15 | val initColor = Color.RED 16 | val square = colorSquare 17 | square.setBackgroundColor(initColor) 18 | 19 | val pickColorFragment = PickColorFragment.newInstance(initColor).apply { 20 | colorDispatcher = { color -> 21 | square.setBackgroundColor(color) 22 | } 23 | popCustomColor = { 24 | switchCustomColorPicker(this) 25 | } 26 | } 27 | 28 | supportFragmentManager.beginTransaction() 29 | .add(R.id.container, pickColorFragment, "PickColorFragment") 30 | .commit() 31 | } 32 | 33 | private fun switchCustomColorPicker(fragment: PickColorFragment) { 34 | supportFragmentManager.beginTransaction() 35 | .setCustomAnimations( 36 | R.anim.slide_right_in, 37 | R.anim.slide_left_out, 38 | R.anim.slide_left_in, 39 | R.anim.slide_right_out 40 | ) 41 | .add(R.id.container, fragment.newCustomColorFragment(), "CustomColorFragment") 42 | .addToBackStack(null) 43 | .hide(fragment) 44 | .commit() 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/java/com/horizon/colorpickerdemo/ui/CustomColorFragment.kt: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.horizon.colorpickerdemo.ui 4 | 5 | import android.graphics.Color 6 | import android.os.Bundle 7 | import androidx.fragment.app.Fragment 8 | import android.view.LayoutInflater 9 | import android.view.View 10 | import android.view.ViewGroup 11 | import com.horizon.colorpickerdemo.R 12 | import kotlinx.android.synthetic.main.fragment_custom_color.* 13 | 14 | 15 | class CustomColorFragment : Fragment() { 16 | var colorChangeListener :((Int) -> Unit) ?= null 17 | 18 | private var alpha : Int = 0 19 | 20 | private val hsv = FloatArray(3) 21 | 22 | companion object { 23 | @JvmStatic 24 | fun newInstance(color: Int, listener :((Int) -> Unit)) = CustomColorFragment().apply { 25 | val bundle = Bundle() 26 | bundle.putInt ("color", color) 27 | arguments = bundle 28 | colorChangeListener = listener 29 | } 30 | } 31 | 32 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { 33 | return inflater.inflate(R.layout.fragment_custom_color, container, false) 34 | } 35 | 36 | override fun onViewStateRestored(savedInstanceState: Bundle?) { 37 | super.onViewStateRestored(savedInstanceState) 38 | var color = Color.RED 39 | arguments?.run { color = getInt("color") } 40 | alpha = color and 0xFF000000.toInt() 41 | 42 | Color.colorToHSV(color, hsv) 43 | 44 | hueBar.setValue(hsv[0] / 360F) 45 | saturationBar.setColor(hsv) 46 | brightnessBar.setColor(hsv) 47 | 48 | hueBar.setOnValueChangeListener { 49 | hsv[0] = it * 360F 50 | updateColor() 51 | } 52 | 53 | saturationBar.setOnValueChangeListener { 54 | hsv[1] = it 55 | updateColor() 56 | } 57 | 58 | brightnessBar.setOnValueChangeListener { 59 | hsv[2] = it 60 | updateColor() 61 | } 62 | } 63 | 64 | private fun updateColor(){ 65 | saturationBar.setColor(hsv) 66 | brightnessBar.setColor(hsv) 67 | colorChangeListener?.invoke(alpha or (Color.HSVToColor(hsv) and 0xFFFFFF)) 68 | } 69 | } -------------------------------------------------------------------------------- /app/src/main/java/com/horizon/colorpickerdemo/ui/FancyColorPickerActivity.kt: -------------------------------------------------------------------------------- 1 | 2 | package com.horizon.colorpickerdemo.ui 3 | 4 | import android.graphics.Color 5 | import android.os.Bundle 6 | import androidx.appcompat.app.AppCompatActivity 7 | import com.horizon.colorpickerdemo.R 8 | import com.horizon.fancypicker.ColorPickerDialog 9 | import kotlinx.android.synthetic.main.activity_color_picker.* 10 | 11 | class FancyColorPickerActivity : AppCompatActivity() { 12 | 13 | private var mColor = Color.RED 14 | 15 | override fun onCreate(savedInstanceState: Bundle?) { 16 | super.onCreate(savedInstanceState) 17 | setContentView(R.layout.activity_fancy_color_picker) 18 | 19 | colorSquare.setBackgroundColor(mColor) 20 | colorSquare.setOnClickListener { 21 | ColorPickerDialog.Builder(this@FancyColorPickerActivity, mColor) 22 | .setOnColorPickedListener { color -> 23 | mColor = color 24 | colorSquare.setBackgroundColor(mColor) 25 | } 26 | .build() 27 | .show() 28 | } 29 | } 30 | 31 | } -------------------------------------------------------------------------------- /app/src/main/java/com/horizon/colorpickerdemo/ui/PickColorFragment.kt: -------------------------------------------------------------------------------- 1 | 2 | package com.horizon.colorpickerdemo.ui 3 | 4 | import android.os.Bundle 5 | import androidx.fragment.app.Fragment 6 | import android.view.LayoutInflater 7 | import android.view.View 8 | import android.view.ViewGroup 9 | import com.horizon.colorpickerdemo.R 10 | import com.horizon.colorpicker.seekbar.Utils 11 | import kotlinx.android.synthetic.main.fragment_color_picker.* 12 | 13 | 14 | class PickColorFragment : Fragment(){ 15 | var colorDispatcher: ((Int) -> Unit)? = null 16 | var popCustomColor : (() -> Unit)? = null 17 | 18 | private var resultColor: Int = 0xFF000000.toInt() 19 | 20 | private val colorChangeListener :((Int) -> Unit) = { color -> 21 | resultColor = color 22 | colorDispatcher?.invoke(color) 23 | palette?.selectedColor(color) 24 | } 25 | 26 | companion object { 27 | fun newInstance(color: Int) = PickColorFragment().apply { 28 | val bundle = Bundle() 29 | bundle.putInt ("color", color) 30 | arguments = bundle 31 | } 32 | } 33 | 34 | fun newCustomColorFragment() : CustomColorFragment{ 35 | return CustomColorFragment.newInstance(resultColor, colorChangeListener) 36 | } 37 | 38 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { 39 | return inflater.inflate(R.layout.fragment_color_picker, container, false) 40 | } 41 | 42 | override fun onViewStateRestored(savedInstanceState: Bundle?) { 43 | super.onViewStateRestored(savedInstanceState) 44 | arguments?.run { resultColor = getInt("color") } 45 | 46 | palette.selectedColor(resultColor) 47 | 48 | palette.setOnColorSelectListener { color-> 49 | resultColor = (resultColor and 0xFF000000.toInt()) or (color and 0xFFFFFF) 50 | colorDispatcher?.invoke(resultColor) 51 | } 52 | 53 | palette.setOnCustomColorListener { 54 | popCustomFragment() 55 | } 56 | 57 | alphaBar.setValue(1f - (resultColor ushr 24) / 255F) 58 | alphaBar.setOnValueChangeListener { transparency -> 59 | val alpha = Utils.roundF((1f - transparency) * 255) and 0xFF 60 | resultColor = (alpha shl 24) or (resultColor and 0xFFFFFF) 61 | colorDispatcher?.invoke(resultColor) 62 | } 63 | } 64 | 65 | private fun popCustomFragment() { 66 | popCustomColor?.invoke() 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_left_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_left_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_right_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/anim/slide_right_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_color_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_fancy_color_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |