Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Swipey tabs without Action Bar

I've created a ViewPager. and I want to add scrollable tabs (swipey tabs) to make it more flexible (like google play). and all the tutorials that i found using ActionBar. How can i do it without using ActionBar?

like image 449
IBRA Avatar asked Jan 31 '13 13:01

IBRA


People also ask

What is a ViewPager in Android?

ViewPager in Android allows the user to flip left and right through pages of data. In our android ViewPager application we'll implement a ViewPager that swipes through three views with different images and texts.


2 Answers

PagerTabStrip and the tab flavor of ViewPagerIndicator should both give you swipey tabs.

like image 54
CommonsWare Avatar answered Sep 28 '22 16:09

CommonsWare


This link will be helpful to you and you achieve that by following the example explained in the tutorial.

Or

You can search for SupportV4Demos in Samples and you can find the example FragmentTabs and Pager example to achieve that.

like image 37
TNR Avatar answered Sep 28 '22 17:09

TNR