nairdat
nairdat

Reputation: 179

android Navigation Tabs in middle of screen

In my app i want to have tabs in the middle of the screen and a gMap at the top is there anyway to position the tabs in the middle of the screen?

Here is a raw design

a busy cat
(source: qnex.me)

Upvotes: 4

Views: 3633

Answers (1)

Rich
Rich

Reputation: 36856

You can use ViewPagerIndicator library (using TabPageIndicator control) with a ViewPager control, and these are completely separate from the ActionBar and can be positioned anywhere you like. Download the source and check out the sample app. The code is very straightforward.

Here's an example straight from the source of the sample app

https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/sample/res/layout/simple_tabs.xml

Upvotes: 3

Related Questions