mirror of
https://github.com/AdrianKuta/ViewPagerDotsIndicator.git
synced 2025-04-19 23:19:02 +02:00
Code format
This commit is contained in:
parent
7501fd9a57
commit
4ec690fc4c
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -15,12 +15,9 @@ class ViewPager2Activity : AppCompatActivity() {
|
|||||||
setContentView(R.layout.activity_viewpager2)
|
setContentView(R.layout.activity_viewpager2)
|
||||||
setSupportActionBar(toolbar)
|
setSupportActionBar(toolbar)
|
||||||
|
|
||||||
val adapter =
|
val adapter = ScreenSlidePagerAdapter(this)
|
||||||
ScreenSlidePagerAdapter(
|
|
||||||
this
|
|
||||||
)
|
|
||||||
viewPager2.adapter = adapter
|
viewPager2.adapter = adapter
|
||||||
TabLayoutMediator(tabLayout, viewPager2) {tab, position ->
|
TabLayoutMediator(tabLayout, viewPager2) { tab, position ->
|
||||||
|
|
||||||
}.attach()
|
}.attach()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user