Last active
December 20, 2019 16:00
-
-
Save apksherlock/eb6da9b0dfa89c1c46846a53f1940dc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TabLayoutMediator(tabLayout, viewPager) { tab, position -> | |
when (position) { | |
0 -> tab.text = "Home" | |
1 -> tab.text = "School" | |
} | |
}.attach() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment