Seekbar in Android using Kotlin:


With the help of seekbar you can set the range i.e  price range.
For example set the range between 0 to 100 and so on.
It has of two types one is Simple and another is Discrete( a seekbar is divided into many small parts).
In this video you’ll learn how to create a discrete seekbar in android using kotlin.
Step 1. Add a seekbar in your layout (XML file).
Step 2. Set all constraints according to your need.
Step 3. Set the minimum and maximum value for the range of seekbar.
Steo 4. Go to KT file and apply a listener on seekbar like :
Toast.maketext(this, Mainactivity,pi.tostring,toast.length_long).show()


Want to say something? Post a comment

Your email address will not be published. Required fields are marked *