Hi all,

I have a home widget with 4x2 ImageButton controls in it.

All works great besides one thing - when I use the dpad to navigate to
the widget, it seems to be working, but there is no focus rectangle
drawn around the ImageButton that seems to have the focus.

If I press the center dpad button, the action assigned to the
ImageButtons that is supposed to have the focus does get launched, but
there is no rectangle drawn.

What am I missing here ?

The other widgets I use do have the focus rect within them...

Here is an extract from my code:


<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    android:id="@+id/FrameLayout01"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android";>
    <RelativeLayout
        android:id="@+id/LinearLayout00"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <ImageView
            android:id="@+id/image"
            android:layout_width="400dip"
            android:layout_height="148dip"
            android:layout_marginLeft="12dip"
         android:layout_marginTop="6dip"
         android:src="@drawable/widget_frame_400"></ImageView>

       <RelativeLayout
           android:id="@+id/LinearLayout01"
           android:layout_width="fill_parent"
           android:layout_height="64dip"
           android:layout_marginTop="10dip"
         android:layout_alignParentTop="true">

         <ImageView android:id="@+id/ImageButton01"
            android:layout_marginLeft="43dip"
            android:layout_marginTop="9dip"
            android:layout_width="45dip"
            android:layout_height="45dip"
            android:layout_alignParentLeft="true"
            android:scaleType="centerInside"
            android:focusable="false"
            android:focusableInTouchMode="false"
            android:background="@drawable/item_application"/>

         <ImageView android:id="@+id/ImageButton01Channel"
            android:layout_marginLeft="73dip"
            android:layout_marginTop="39dip"
            android:layout_width="20dip"
            android:layout_height="20dip"
            android:layout_alignParentLeft="true"
            android:scaleType="centerInside"
            android:focusable="false"
            android:focusableInTouchMode="false"
            android:background="@drawable/channel_sms"/>

         <ImageButton android:id="@+id/ImageButton01frame"
            android:layout_marginLeft="34dip"
            android:layout_width="64dip"
            android:layout_height="64dip"
            android:layout_alignParentLeft="true"
            android:scaleType="centerInside"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:background="@drawable/cube_frame_cannel"/>

      </RelativeLayout>

    </RelativeLayout>
</FrameLayout>


TIA

-- 
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