PagerSlidingTabStrip icon indicating copy to clipboard operation
PagerSlidingTabStrip copied to clipboard

Different color for selected tab icon

Open eladbitton opened this issue 9 years ago • 1 comments

Hi, I want to change the tab drawable to a different one when it's selected. I have created a selector: <?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">

`<item android:drawable="@drawable/ic_tab_document_blue" android:state_selected="true" />`

`<item android:drawable="@drawable/ic_tab_document_gray" />`

</selector>

This is somehow don't work, the gray drawable never changes to the blue one. I believe that the android:state_selected isn't set properly.

eladbitton avatar Dec 04 '15 17:12 eladbitton

I am also trying to do this, and it doesn't work either

andyjslee avatar Dec 30 '15 09:12 andyjslee