android - TabLayout versus pagerTabStrip for convenience and functionality -


when using viewpager, there advantage using tablayout instead of pagertabstrip or vice versa? or equivalent? 1 more convenient other? 1 offer greater functionality? again questions asked, , answers expected, in context of viewpager. thanks.

tablayout material concept replaced deprecated actionbar tabs in android 5.0. extends horizontalscrollview, can keep adding tabs horizontally can include text, icons, or custom views , scroll through them linearly without paging.

tablayout provides setupwithviewpager(viewpager viewpager) method attach viewpager instead of being part of viewpager pagertabstrip.

a pagertabstrip more of indictor current page of viewpager, , "it intended used child view of viewpager widget". scrolling not act tablayout since each tab part of page instead of individually horizontally scrollable.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -