Having this selector XML file:
<?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/z01_pressed" /> <!-- pressed -->
<item android:state_active="true"
android:drawable="@drawable/z01_pressed" />
<item android:state_focused="true"
android:drawable="@drawable/z01_pressed" /> <!-- focused -->
<item android:drawable="@drawable/z01" /> <!-- default -->
</selector>
Can I modify it (or have a programmatic way) to do this in Android:
When you click and hold an ImageButton and move you finger to another ImageButton the other one gets the effect (The pressing effect) and the first one returns to its normal state.
So, If you have multiple buttons in your screen and you slide your finger in top of them, each one gets the press effect when the finger is above it
Can this be done in XML? Code? In API 4 ? or above?
Is this even possible?
Thanks
To those who might be interested:
I couldn’t find a solution to my problem under API level 4. So, I gave up !