SpaceTabLayout
SpaceTabLayout copied to clipboard
spaceTabLayout initialize issue in kotlin and how use spaceTabLayout in kotlin
val fragmentList = ArrayList<Fragment>() fragmentList.add(HomeFragment.newInstance()) fragmentList.add(HomeFragment.newInstance()) fragmentList.add(HomeFragment.newInstance()) fragmentList.add(HomeFragment.newInstance()) fragmentList.add(HomeFragment.newInstance())
val adapter = HomeTabAdapter(this, supportFragmentManager, 5)
binding.viewPager!!.adapter = adapter
binding.spaceTabLayout.initialize(binding.viewPager,getSupportFragmentManager(),fragmentList,savedInstanceState)
java.lang.IllegalArgumentException: No view found for id 0x7f080102 (com.nuatransmedia.sliver_spoon:id/viewPager) for fragment HomeFragment{51a71a9 #1 id=0x7f080102 android:switcher:2131230978:1}