Skip to content

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

Description

@NuaTransMediaGitHub

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}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions