TabLayout color of selected tab underline
android, android-layout
Solution
Use `app:tabIndicatorColor`.
Example:
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabIndicatorColor="@android:color/white" />
Make sure you have this `namespace`: `xmlns:app="http://schemas.android.com/apk/res-auto"`
Documentation: https://developer.android.com/reference/android/support/design/widget/TabLayout.html#attr_android.support.design:tabIndicatorColor.
Problem
How can I change the color of the underline of the selected tab on the new TabLayout? The PagerTabStrip has a method `setTabIndicatorColor(int color)`, `TabLayout` doesn't seem to have such a method.