I'm trying to use the new TabLayout in the android design library to create app bar with icons only.
like this:
how can I do it using the new TabLayout Android Design Library.
is there a simple solution for this, or i have to use the setCustomView only. i'm trying to avoid using it. because i didn't get the tint color for the icon like this image above.
i try to write like this:
tabLayout.addTab(tabLayout.newTab().setIcon(R.drawable.ic_dashboard))
but the icon still stay in the same color when i select the tab
TabLayout
much so forgive me if this isn't helpful, but have you tried using intoTabLayout#setTabTextColors(int normalColor, int selectedColor)
? I'm not sure if it will give you what you want, but it can't hurt to try setting it? – Kalong