Color Picker Android Studio Kotlin Custom Spinner Tutorial

  Рет қаралды 8,231

Code With Cal

2 жыл бұрын

How to build a simple color picker using a custom dialog spinner in Kotlin & Android Studio.
With this example beginner programming project we build a custom spinner adapter to allow the user to select from a list of colors, and then populate out spinner text and color with the selected color.
The custom spinner can be used as a dialog spinner or a dropdown spinner.
This Kotlin tutorial is built using view bindings in Android Studio Arctic Fox.
Color Picker Source Code:
github.com/codeWithCal/SpinnerColorPicker
⏱️ TIMESTAMPS ⏱️
00:00 - Color Picker
00:35 - Spinner XML
03:39 - Enable viewBinding
03:50 - Kotlin Objects
05:16 - Custom Spinner Adapter
07:45 - Main Color Spinner
#KotlinProgramming #AndroidStudio #AndroidDevelopment

Пікірлер: 5
@khaledbensalem5810
@khaledbensalem5810 Жыл бұрын
thanks
@hernandezaxel5471
@hernandezaxel5471 2 жыл бұрын
good video, thanks
@CodeWithCal
@CodeWithCal 2 жыл бұрын
Glad it helped
@lucaassito
@lucaassito 2 жыл бұрын
excellent video thanks a lot ! It would have been perfect with Java but still cool ! ^^
@CodeWithCal
@CodeWithCal 2 жыл бұрын
🙂