Hi,

I have a problem on the autoLink property on TextView.
I created a ListView (X) and implemented an list adapter (Y) to render
my custom layout like this:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <ImageView android:id="@+id/avatar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    <TextView android:id="@+id/msg"
        android:layout_gravity="top"
        android:layout_width="0dip"
        android:layout_weight="1.0"
        android:layout_height="wrap_content"
        android:autoLink="web"
        android:textColorLink="#7cecff"
        android:textColor="#fafafa"/>
</LinearLayout>

However, if the TextView's autoLink property is set, the items in X
will not trigger the onItemClick (nore onItemLongClick) event. I found
a thread that discussed this problem:

http://groups.google.com/group/android-developers/browse_thread/thread/3d96af1530a7d62a/9f9919a4b604c104?lnk=gst&q=clickable+focusable#9f9919a4b604c104

I try to modify the adapter Y's code and make the covertView clickable
& focusable. It seems that the items can be clicked now but only
effected on ""THE AREA NOT COVERED THE TextView"", the TextView's area
still cannot be clicked.

Is there any solution on it? Thanks!
--~--~---------~--~----~------------~-------~--~----~
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