Hi,

I have a list that contains views consisting an ImageView followed on
the right by a TextView:

    <LinearLayout
        android:orientation="horizontal"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
        <ImageView android:id="@+id/news_image"
            android:layout_width="88dp"
            android:layout_height="66dp"
            android:padding="10dp" />
        <TextView android:id="@+id/news_text"
            android:lines="4"
            android:inputType="textMultiLine"
            android:layout_marginTop="5dp"
            android:text="@string/LANGKEY_headlines_unavailable"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"/>
    </LinearLayout>

I implemented fling the usual way, as follows:

            listItemView.setOnClickListener(NewsListActivity.this);
            listItemView.setOnTouchListener(gestureListener);

where listItemView is the above view.

Now, if I begin the fling on the ImageView, I see it. But if I begin
it in the TextView, I don't; also, mouse down on the TextView causes
the tyext to disappear until the mouse is released (I don't know if
that's relevant, but I thought I'd mention it). It seems that Android
attaches the listeners to the first view in the layout, which looks
like a bug to me. How can I get Android to recognize flings (and
clicks) anywhere in the view?

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