Please accept YouTube cookies to play this video. By accepting you will be accessing content from YouTube, a service provided by an external third party.

YouTube privacy policy

If you accept this notice, your choice will be saved and the page will refresh.

 

Show the video description

In this video we will learn how to use the ColorSeekBar library, to implement a color seekbar into our app, which we can drag and slide to choose a color. In the onColorChangeListener callback we can fetch the selected color as an integer, and for example use it as a text color or background color.

Important Linksactivity_main.xmlarrays.xmlMainActivity.java

Library on GitHub with dependencies + instructions:

github.com/rtugeek/ColorSeekBar