Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spaceTabLayout initialize issue in kotlin and how use spaceTabLayout in kotlin #43

Open
NuaTransMediaGitHub opened this issue Aug 17, 2019 · 0 comments

Comments

@NuaTransMediaGitHub
Copy link

val fragmentList = ArrayList()
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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant