Android – changes the icons in the tablayout in the selected and deselected states
•
Android
Sorry, if you have asked this question before
I want to change the icon when I select the icon in the tab of the tab layout. How can I do this with a selector?
There are two tabs in my application. The selected status icon should be changed
resolvent:
Please try this
tabLayout.getTabAt(0).setIcon(R.drawable.selector);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码