Quantcast
Viewing all articles
Browse latest Browse all 10

Android Dev: ActionBar Tabs + Swiping

{lang: 'en-GB'}

So I have spent my evening trying to use ViewPager + ActionBar + Tabs. I didn’t manage to find a complete example.

I have just made a test project that demonstrates this wonderful Android design:

In this project I have:

* 1 main FragmentActivity (using support library)
* 2 fragment classes (using support library)
* 3 layout xml files

Swiping between the views changes the selected tab, and selecting a tab changes the current page.

I hope this helps .. here is the link to the public repo

The post Android Dev: ActionBar Tabs + Swiping appeared first on Droid App.


Viewing all articles
Browse latest Browse all 10

Trending Articles