Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid not receiving touch event on a TextView with scrollbars
    primarykey
    data
    text
    <p>I have a LinearLayout with some nested LinearLayouts, ImageView's and TextViews. One of the TextView's have scroll bars. I have the onTouchEvent() method overriden in my LinearLayout class but when you touch the TextView with the scroll bar nothing registers. </p> <p>Here is my xml file (the TextView in question is the last item in this layout):</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:orientation="vertical" android:minWidth="310dp" android:layout_width="fill_parent"&gt; &lt;LinearLayout android:id="@+id/from_linear_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="left"&gt; &lt;ImageView android:src="@drawable/ic_dialog_info" android:id="@+id/notification_type_icon_image_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:scaleType="center" android:layout_margin="4dp"/&gt; &lt;TextView android:id="@+id/time_text_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:text="Timestamp" android:textAppearance="?android:attr/textAppearanceSmall" android:padding="1dp" android:textColorLink="?android:attr/textColorPrimaryDisableOnly"/&gt; &lt;/LinearLayout&gt; &lt;ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/under_contact_image_view" android:src="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" android:paddingLeft="5dp" android:paddingRight="5dp" android:paddingBottom="2dp" android:paddingTop="2dp" /&gt; &lt;TextView android:text="Notification Text" android:id="@+id/notification_text_view" android:autoLink="all" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="?android:attr/textColorPrimaryDisableOnly" android:layout_width="fill_parent" android:gravity="left" android:paddingRight="10dp" android:paddingLeft="10dp" android:textColorLink="?android:attr/textColorPrimaryDisableOnly" android:layout_gravity="left" android:layout_height="70dip" android:scrollbars="vertical"/&gt; &lt;/LinearLayout&gt; </code></pre> <p>Any thoughts on this and if so, does anyone know how to overcome this so that I can implement a touch event on this TextView?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload