Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slide tab bar like in android market [closed]

Does anyone know how to implement the bar like in android market (Categories, featured, top paid...) I've also seen it in the new version of SuperUser so i know it can be done. Thank you for your responses!

like image 872
Noureddine AMRI Avatar asked Dec 14 '11 10:12

Noureddine AMRI


People also ask

How do I hide the tab bar on Android?

Toggle Tab Bar visibility To toggle the visibility of the Tab Bar, either: Open Settings > Tabs and untick the box for Show Tab Bar to hide it. Tick the box again to show the Tab Bar; Open the.

What is TabLayout?

com.google.android.material.tabs.TabLayout. TabLayout provides a horizontal layout to display tabs.

What is Tabbar?

Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy. The Tab Bar contains the Tab Scroller and Tab components.


2 Answers

Thanks to Selvin for the response.

See as suggested: https://github.com/JakeWharton/Android-ViewPagerIndicator

or this for a quick tutorial: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

like image 165
Noureddine AMRI Avatar answered Sep 28 '22 08:09

Noureddine AMRI


Jake Wharton's Android-ViewPagerIndicator is a good option, but it doesn't support underline bar movement like below images(you can see what "underline bar movement" is as video at here).

I think Astuetz's PagerSlidingTabStrip is an another good option for this regard, since it gives more natural and interactive user experience.

This implementation is available at Github. See: https://github.com/astuetz/PagerSlidingTabStrip

Also you can download sample app at Play Store.

enter image description hereenter image description here

like image 42
김준호 Avatar answered Sep 28 '22 07:09

김준호