Skip to content

Instantly share code, notes, and snippets.

@cdmunoz
Created April 23, 2020 02:59
Show Gist options
  • Select an option

  • Save cdmunoz/acdaba7312e74bb9562731340ddb2a41 to your computer and use it in GitHub Desktop.

Select an option

Save cdmunoz/acdaba7312e74bb9562731340ddb2a41 to your computer and use it in GitHub Desktop.
class OnBoardingAdapter(activity: AppCompatActivity, private val itemsCount: Int) :
FragmentStateAdapter(activity) {
override fun getItemCount(): Int {
return itemsCount
}
override fun createFragment(position: Int): Fragment {
return OnBoardingFragment.getInstance(position)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment