user1071762
user1071762

Reputation: 685

Fixed tabs in new material design android

I've searched stackoverflow and google material design documentation quite a lot but can't find a way how to correctly implement simple fixed tabs in the new material design. I am using appcompat v7 library with toolbar which is great but can't seem to find a way to add tabs to it or simply below it as it is shown heretabs from google website

I've found the SlidingTabsBasic class but that does not meet my requirements as I only use 2 tabs, and they don't fill in the whole horizontal space

Could you please point me into right direction on how to implement those (maybe I have only misunderstood how google wants us to use/implement them).

Much appreciated

Upvotes: 9

Views: 5253

Answers (2)

Tomas K
Tomas K

Reputation: 371

Google has released a Material Design Support Library, which includes a TabLayout to create Material design easier

Upvotes: 1

NeoKree
NeoKree

Reputation: 409

Actually google has not released anything, but my custom library uses the style and animation defined in the Material Design guidelines.

Here you can find it, good work!

Upvotes: 5

Related Questions