Open zoumy opened 9 years ago
The indicator couldn't be seen when set TabBackground color.
tabs.setIndicatorColor(Color.parseColor("#ffffff")); tabs.setSelectedTextColor(Color.parseColor("#ffffff")); tabs.setTabBackground(R.color.title_bar_background_color);
You must use a drawable reference, like this : R.drawable.back
in xml use android:background . It is working on my case, both tab background and indicator color are present.
android:background
The indicator couldn't be seen when set TabBackground color.