title: TabLayout does not display tabs items
body: <p>I try connect TabLayout with ViewPager2 via TabLayoutMediator but items <a href="https://i.stack.imgur.com/FQllx.png" rel="nofollow noreferrer">not displayed correctly</a></p>
  <p>How i can fix it ?</p>
  <p>Here is my code :</p>
  <pre><code>class ScreenSlidePagerAdapter(fa: FragmentActivity) : FragmentStateAdapter(fa) {
  override fun getItemCount(): Int = 3
  
  override fun createFragment(position: Int) = SalesOfficesFragment()
  </code></pre>
  <p>}</p>
  <pre><code>    private fun initViews() {
      val pagerAdapter = ScreenSlidePagerAdapter(context as FragmentActivity)
      binding.viewPager.adapter = pagerAdapter
      TabLayoutMediator(binding.tabLayout, binding.viewPager) { tab, position -&gt;
      }.attach()
  }
  </code></pre>