TabLayout with ViewPager2 but one tab is just a button
I am writing an application where I use TabLayout
with ViewPager2
. Each tab has a fragment in the ViewPager
, the number of tabs may vary. I need to add a tab through the button located in the TabLayout
as a separate tab, which does not have a fragment.