Question Detail

Custom color on tabs of tablayout

3 years ago Views 852 Visit Post Reply


I have a tablayout and a viewpager. What i want is to change the color of each tab when it was selected. The color of the tab should be different as depends on its position. Means each tab should have different color as per it's position.

Thread Reply

Nick Johnson

- 3 years ago

Please share the code of your TabLayout and ViewPager's Layout.