Skip to content

Instantly share code, notes, and snippets.

@baggednismo
Created May 26, 2020 19:25
Show Gist options
  • Save baggednismo/63d3efe47d271301834460bb59bc3f6c to your computer and use it in GitHub Desktop.
Save baggednismo/63d3efe47d271301834460bb59bc3f6c to your computer and use it in GitHub Desktop.
class LauncherActivity : AppCompatActivity(){
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val handler = Handler()
setContentView(R.layout.activity_launcher)
val updates = listOf(
UpdatesSeriesModel(
...
),
UpdatesSeriesModel(
...
),
UpdatesSeriesModel(
...
)
)
pager.adapter = ViewPagerAdapter(updates)
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment