/RGBColourPicker

App to pick a colour in RGB and change the background automatically

Primary LanguageKotlin

RGB Colour Picker

An App which changes the colour of its background based on the position of the 3 sliders.

Screenshots

DEMO

alt text

Design Decisions

Whilst designing this app I identified an initial issue that when the background colour changes it could make the text/sliders difficult to see, to solve this, the app first checks the values provided by the slider and then will adjust the colour of the UI elements accordingly so they will always be seen by the user. I also added the functionality for the status bar to change colour inline with the rest of the background for consistency.

Technology used

  • Kotlin
  • View Binding
  • ViewModel (Used to persist colour values during rotation)
  • LiveData
  • Constraint Layout

Installation Instructions

The code can be downloaded from this Github repository and run on any Android emulator, you will simply just need to open the project in Android Studio, click "run" and the app will launch in the emulator, I have also provided an apk file labelled "app.apk" which can be installed on any android device.