SubwayTooter-Android-App/app/src/main/java/jp/juggler/subwaytooter/actmain/PhoneViews.kt

17 lines
526 B
Kotlin
Raw Normal View History

2021-06-28 09:09:00 +02:00
package jp.juggler.subwaytooter.actmain
2021-06-23 06:14:25 +02:00
2021-06-28 09:09:00 +02:00
import jp.juggler.subwaytooter.ActMain
2021-06-23 06:14:25 +02:00
import jp.juggler.subwaytooter.view.MyViewPager
class PhoneViews(val actMain: ActMain) {
internal lateinit var pager: MyViewPager
internal lateinit var pagerAdapter: ColumnPagerAdapter
fun initUI(viewPager: MyViewPager) {
this.pager = viewPager
this.pagerAdapter = ColumnPagerAdapter(actMain)
this.pager.adapter = this.pagerAdapter
this.pager.addOnPageChangeListener(actMain)
}
}