Does the Android 5.0 have Material-styled tabs

Welcome to ScriptMode
Rami
Posts: 36
Joined: Tue Aug 25, 2015 9:39 am

Does the Android 5.0 have Material-styled tabs

Postby Rami » Wed Mar 02, 2016 7:22 am

I know in the dev preview, they were still Holo-styled. I was wondering if 5.0 has been updated with material-style tabs; I currently use PagerSlidingTabStrip for my tabs, but that has not been updated with Material design yet.

More specifically, does the support library include an implementation of material tabs? The Play Store running on 4.x has those tabs, but I'm not sure if that's a custom implementation by Google or not.

Paul
Posts: 137
Joined: Mon Aug 24, 2015 4:53 pm

Re: Does the Android 5.0 have Material-styled tabs

Postby Paul » Fri Mar 04, 2016 1:32 pm

Look at the latest version of Google Play(down below).

They are using the SlidingTabsColors(not SlidingTabsBasic) but with colors. You need to look at those two files: SlidingTabLayout.java and SlidingTabStrip.java and simply change the color to match your ActionBar/TooBar color.

Also, you will notice when you swipe left/right, the Tab title text color will become "white" and the unselected titles are an "gray" color.


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests