TabLayout with viewpager

kotlin

#1

How to create Tab Layout with viewpager . Suppose I want to create a 4 Tabs with sliding functionality in Kotlin?