views:

34

answers:

0

I have a long text message followed by a link and have put this inside a TextView. It's simply like this:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content" android:layout_height="wrap_content">
    <LinearLayout android:orientation="vertical"
        android:layout_width="wrap_content" android:layout_height="wrap_content">
        <TextView android:id="@+id/details" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:padding="10dp"
            android:text="@string/message" android:textSize="16sp" android:autoLink="web"/>
    </LinearLayout>![alt text][1]
</ScrollView>

The problem is when I select the link the whole text becomes highlighted. How can this be prevented ?

alt text