Just realised I can't click on stations either if I have the gallery
visible :/

On Jul 20, 1:11 pm, Anders Aagaard <aagaa...@gmail.com> wrote:
> Hi
>
> I have an application using a ListView activity to display realtime
> station information.
>
> The layout is like this:
>
> <Top line, Station name - Eta>
> <Gallery with TextView's, draggable showing busses/trains arriving
> after the next one>
>
> Now on simple station data where I do Gallery.setVisibility(View.GONE)
> registerForContextMenu works as expected, but as soon as the gallery
> is rendered I can not get the context menu up for that line at all.
>
> It'll still work for different routes, just not the route showing
> extra information.
>
> This is the main list:
> <RelativeLayout
>         xmlns:android="http://schemas.android.com/apk/res/android";
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>     android:orientation="vertical"
>         >
>
>         <TextView
>                 android:id="@+id/line"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:textAppearance="?android:attr/textAppearanceMedium"
>                 android:layout_marginLeft="2dip"
>         android:layout_alignParentTop="true"
>         android:layout_alignParentLeft="true"
>                 />
>
>         <TextView
>                 android:id="@+id/destination"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:textAppearance="?android:attr/textAppearanceMedium"
>
>                 android:layout_marginLeft="40dip"
>                 android:layout_alignBaseline="@id/line"
>                 android:layout_alignParentLeft="true"
>                 />
>
>         <TextView
>                 android:id="@+id/time"
>                 android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
>                 android:textAppearance="?android:attr/textAppearanceMedium"
>
>                 android:layout_marginRight="6dip"
>                 android:layout_alignParentRight="true"
>                 />
>
>     <Gallery android:id="@+id/nextDepartures"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:spacing="16dp"
>                 android:layout_below="@+id/line"
>     />
> </RelativeLayout>
>
> And this is the data I put in Gallery:
> <TextView xmlns:android="http://schemas.android.com/apk/res/android";
>     android:id="@android:id/text1"
>     android:layout_width="wrap_content"
>     android:layout_height="wrap_content"
>     android:textAppearance="?android:attr/textAppearanceSmall"
>     android:textColor="#000000"
> />
--~--~---------~--~----~------------~-------~--~----~
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