views:

11

answers:

1

I made an image button in eclipse and I tested it out (ran it) with the emulator in the android sdk package.

 <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
<item android:state_pressed="true"
 android:drawable="@drawable/cat1" /> <!-- pressed -->
 <item android:state_focused="true"
  android:drawable="@drawable/cat2" /> <!-- focused -->
 <item android:drawable="@drawable/cat3" /> <!-- default -->
 </selector>

Pressed and Default work with the mouse, but how do you focus it? Or if you can't, do you need to get an android phone?

A: 

Use the track ball or arrow keys to move around between your views.

EboMike
THANK YOU SO MUCH!!!!
Mia