The solution I found:

You can't set background. No matter which widget which has background
set will not get forcused.

On Dec 15 2008, 1:13 pm, Ralf <[email protected]> wrote:
> Just a random thought: you could try to add android:focusable="true"
> There's also android:focusableInTouchMode="true".
> That might be a moot point as I believe buttons are focusable by default.
> R/
>
> On Mon, Dec 15, 2008 at 10:51 AM,cindy<[email protected]> wrote:
>
> > Hi all,
>
> > I have defined a button with only background image( I don't wnat to
> > have border of button). It shows on screen correctly.
> > But when I use track ball to select buttons. it never get selected. It
> > happens to ImageButton too.
>
> > <ImageButton android:id ="@+id/audio_resetB"
> >                        android:background="@drawable/remove"
> >                        android:layout_width="wrap_content"
> >                        android:padding ="12px"
> >                        android:layout_height="wrap_content"
> >                        android:layout_alignParentLeft="true" />
>
> > Does any one have small experience?
>
> > Thanks!
>
> >Cindy
--~--~---------~--~----~------------~-------~--~----~
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