1

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

Divya
  • 119
  • 1
  • 11

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,222
  • 1
  • 3
  • 17
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,358
  • 1
  • 12
  • 28