set Selected Tab Indicator
Sets the selection indicator for this TabLayout. By default, this is a line along the bottom of the tab. If tabIndicatorColor
is specified via the TabLayout's style or via setSelectedTabIndicatorColor the selection indicator will be tinted that color. Otherwise, it will use the colors specified in the drawable.
Setting the indicator drawable to null will cause TabLayout to use the default, GradientDrawable line indicator.
Parameters
A drawable to use as the selected tab indicator.
See also
Sets the drawable resource to use as the selection indicator for this TabLayout. By default, this is a line along the bottom of the tab. If tabIndicatorColor
is specified via the TabLayout's style or via setSelectedTabIndicatorColor the selection indicator will be tinted that color. Otherwise, it will use the colors specified in the drawable.
Parameters
A drawable resource to use as the selected tab indicator.