0

I came upon this solution to changing the color of the tab indicator, however, it's over 2 years old and (possibly) outdated:

TabWidget current tab bottom line color

Is there are elegant way to changing the color of the tab indicator, i.e. the underline that's shown at the bottom of an active tab:

https://i.stack.imgur.com/cEt5s.png

Thanks.

Community
  • 1
  • 1
  • 1
    The new way is to use TabLayout. https://developer.android.com/reference/android/support/design/widget/TabLayout.html – DeeV Aug 02 '15 at 20:57
  • And usually you mix this with a AppBarLayout, Toolbar and a CoordinatorLayout as shown in this answer. http://stackoverflow.com/questions/30680824/how-to-use-a-tablayout-with-toolbar-inside-collapsingtoolbarlayout – DeeV Aug 02 '15 at 20:58

1 Answers1

0

See: Android 5.0 Material-styled tabs

Or look through the documentation for the Design Support Library, referenced as such:

compile "com.android.support:design:22.2.0"
Community
  • 1
  • 1