SpaceTabLayout icon indicating copy to clipboard operation
SpaceTabLayout copied to clipboard

spaceTabLayout initialize issue in kotlin and how use spaceTabLayout in kotlin

Open NuaTransMediaGitHub opened this issue 5 years ago • 0 comments

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}

NuaTransMediaGitHub avatar Aug 17 '19 13:08 NuaTransMediaGitHub