Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Components used
androidx.viewpager2:viewpager2:1.0.0
com.google.android.material:material:1.4.0
Devices/Android versions reproduced on
n/a
Issue
I am displaying a
TabLayout
and connecting it to aViewPager2
object (by means of theTabLayoutMediator
class). TheTabLayout
has atabMode
ofscrollable
and contains more tabs than can fit in the screen at once.I see that the
TabLayout
is rendering all of the tabs at once, even the ones which are not displayed.Proposal
It would be great if
ViewPager2
offered a tabbing mechanism which loaded tabs lazily, like how pages are loaded lazily.