Hi,

I want to change the tab image on enable and disable. I am trying to
use following xml. but it is not working

tabhost.newTabSpec(mailboxTabId).setIndicator(mailboxTabId,
        
getResources().getDrawable(R.layout.mailbox_tab_state)).setContent(mailboxIntent);

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android";>
        <item android:state_pressed="true" android:drawable="@drawable/
icon_mailbox_reg" /> <!-- pressed -->
        <item android:state_pressed="false" android:drawable="@drawable/
icon_mailbox"  />
</selector>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to