Android 5.0 Material Style Sheets

Does Android 5.0 have material-style tabs? I know that in Dev Preview they were still in Holo style. I was wondering if the 5.0 tabbed material style was updated; I am currently using PagerSlidingTabStrip for my tabs, but this has not yet been updated using Material design.

In particular, does the support library support the implementation of material tabs? The Play Store running on 4.x has those tabs, but I'm not sure if this is a regular Google implementation or not.

+17
android material-design android-tabs
Oct 18 '14 at 18:08
source share
2 answers

Updated (10/19/2015):

This is now provided by the Android Design Support Library:

compile "com.android.support:design:23.1.0"

Chris Banes example:

https://github.com/chrisbanes/cheesesquare

Android Developer Blog:

http://android-developers.blogspot.com/2015/05/android-design-support-library.html

Android Docs:

http://developer.android.com/reference/android/support/design/widget/TabLayout.html?utm_campaign=io15&utm_source=dac&utm_medium=blog

Support Library:

https://developer.android.com/tools/support-library/features.html#design

Original answer:

Check out the latest version of Google Play (below).

They use SlidingTabsColors (not SlidingTabsBasic), but with colors. You need to look at these two files: SlidingTabLayout.java and SlidingTabStrip.java and just change the color to match the color of the ActionBar / TooBar.

You will also notice that when scrolling left / right, the text color of the title bar will become β€œwhite”, and unmarked headings will be β€œgray”.

For example (how to change the indicator color):

 class SlidingTabStrip extends LinearLayout { // change the strip color private static final int DEFAULT_SELECTED_INDICATOR_COLOR = 0xFF33B5E5; ... } 

Please see here: https://developer.android.com/samples/SlidingTabsColors/index.html

Google play store

Read also:

Android - Google Play as tabs

Navigation modes are not allowed in Android L

+24
Oct 25 '14 at 13:49
source share

You are looking for tabs for material design. Right?

Take a look at this.

enter image description here

In this repository you can find the material design tabs of FYI jpardogo PagerSlidingTabStrip

Update: Mr.Jpardogo he himself answered in the SO post click here

Credits: Mr. Javier Pardo de Santayana GΓ³mez

+21
Nov 04 '14 at 5:33
source share



All Articles