Search code examples
androidtabsmaterial-designtoolbar

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


Solution

  • 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!