Okay I fixed that one ;)

On Feb 6, 8:29 pm, Moritzz <moritz...@googlemail.com> wrote:
> Hi,
>
> I coded an AppWidget the user can add to his homescreen. There are a
> bunch of images (ImageView) in it that perform different actions like
> starting Activities on click (realised with PendingIntents). To make
> it easier to navigate through the AppWidget I'd like to use the
> trackball (as it works with the SearchWidget or FacebookWidget) but I
> just can't make it work.
> Here's my layout code for the AppWidget:
>
> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>         android:id="@+id/relativeLayoutLevel1"
>         android:layout_width="fill_parent"
>         android:layout_height="fill_parent"
>     android:background="@drawable/widget_bg"
>         android:focusable="true"
>         android:focusableInTouchMode="true">
>
>     <RelativeLayout android:id="@+id/SpotX"
> android:addStatesFromChildren="true" android:gravity="center"
> android:layout_width="67dip" android:layout_height="67dip"
> android:background="@layout/backgroundchange"
> android:layout_marginLeft="22dip" android:layout_marginTop="34dip"
> android:clickable="true" android:focusable="true"
> android:focusableInTouchMode="true">
>                 <ImageView android:id="@+id/Button1"
> android:layout_centerHorizontal="true" android:maxWidth="48dip"
> android:maxHeight="48dip" android:src="@drawable/appazaar_logo"
> android:layout_width="48dip"  android:layout_height="48dip"
> android:paddingTop="1dip" android:focusable="true"
> android:focusableInTouchMode="true"/>
>                 <TextView android:id="@+id/Text1"
> android:layout_centerHorizontal="true" android:layout_below="@id/
> Button1" android:maxWidth="66dip" android:layout_width="66dip"
> android:layout_height="19dip" android:text="Appazaar"
> android:maxLines="1" android:textColor="#111111"
> android:typeface="sans" android:textSize="13dip"
> android:gravity="center_horizontal" android:focusable="true"
> android:focusableInTouchMode="true"/>
>         </RelativeLayout>
> ...
> </RelativeLayout>
>
> So I want to be able to navigate through a bunch of these "Spots" that
> are all relativeLayouts. How can I make that work out?
> I'd be really happy about every hint or idea!
>
> Cheers
>
> Moritz

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to