1

I want to implement image slider in android using only kotlin language. I need auto slider with dot indicator.

Divya
  • 164
  • 2
  • 14

2 Answers2

0

You can use viewpager2 to have auto image slide and for round indicator you need to make a drawable.

implementation 'androidx.viewpager2:viewpager2:1.0.0'

Video Tutorial for reference, this is exactly what you need

Kamal Nayan
  • 1,635
  • 1
  • 5
  • 19
0

You can use this link its a java code only, but after adding the file, convert to kotlin using android studio tool, double shift and search for "convert java to kotlin"

Brendon
  • 1,368
  • 1
  • 12
  • 28