https://github.com/leoando/android-palette-samples
sample app for use android palette library
https://github.com/leoando/android-palette-samples
android android-palette java-android kotlin-android
Last synced: 4 months ago
JSON representation
sample app for use android palette library
- Host: GitHub
- URL: https://github.com/leoando/android-palette-samples
- Owner: LeoAndo
- Created: 2021-08-09T12:48:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T22:19:53.000Z (over 4 years ago)
- Last Synced: 2025-08-20T22:36:40.491Z (4 months ago)
- Topics: android, android-palette, java-android, kotlin-android
- Language: Java
- Homepage:
- Size: 199 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
imageViewのBitmapから色を抽出してくれるライブラリ(palette)のAPI調査用のアプリです。
paletteライブラリは1.0リリース後にUpdateがなく、ライブラリ内部でAndroid 11で非推奨APIになった、`AsyncTask`を使っていたりしているので、利用しない方が良いかも

# development environment

# capture

# palette Libarry
```groovy
implementation("androidx.palette:palette:1.0.0")
implementation("androidx.palette:palette-ktx:1.0.0")
```
# For Java code
https://github.com/LeoAndo/android-palette-samples/tree/main/PaletteJavaSample
# For Kotlin code
https://github.com/LeoAndo/android-palette-samples/tree/main/PaletteKotlinSample
# testData(image url)
pokemon png
https://assets.pokemon.com/assets/cms2/img/pokedex/full/001.png
https://assets.pokemon.com/assets/cms2/img/pokedex/full/500.png
pokemon gif
https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/animated/1.gif
https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/versions/generation-v/black-white/animated/500.gif
# refs
https://developer.android.com/reference/androidx/palette/graphics/package-summary