Open eladbitton opened 8 years ago
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"?>
<?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.
I am also trying to do this, and it doesn't work either
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">
</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.