We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7970af5 commit 47022a0Copy full SHA for 47022a0
app/src/main/java/com/fmt/github/user/activity/UserInfoActivity.kt
@@ -56,10 +56,11 @@ class UserInfoActivity : BaseDataBindActivity<ActivityUserInfoBinding>() {
56
mViewPager.adapter = UserInfoPagerAdapter(this, fragmentList)
57
}
58
//绑定TabLayout和ViewPager2
59
- TabLayoutMediator(mTabLayout, mViewPager,
60
- TabLayoutMediator.TabConfigurationStrategy { tab, position ->
61
- tab.text = mTitles[position]
62
- }).attach()
+ TabLayoutMediator(
+ mTabLayout, mViewPager
+ ) { tab, position ->
+ tab.text = mTitles[position]
63
+ }.attach()
64
65
66
override fun onBackPressed() {
image/function.png
236 KB
0 commit comments