How do I change the color of icon of the selected tab of TabLayout?
I'm using a TabLayout with a ViewPager and I'm wondering how I can most efficiently change the color of the icon of the selected tab in the TabLayout. A perfect reference for how this is implemented is Google's Youtube app . On the main page, there are four icons that are colored dark gray. When a specific tab is selected, the tab's icon becomes white. Without any third party libraries , how can I achieve the same effect? One possible solution is apparently with selectors. But in that case, I would have to find both a white and a gray version of the icon and then switch the icon when the tab