How to change drawable of actionbar overflow menu when it's opened

292 Views Asked by At

I want to change drawable of actionbar overflow item until menu is opened. When I select an option (and so menu return closed) I want switch back to default drawable.

I try different "state_X" but no one works. Can you help me please?

<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/new_icon_action_pressed" />
<item android:drawable="@drawable/new_icon_action_2" />

Thanks

0

There are 0 best solutions below