2011-08-17 62 views
1

我希望把一個TextView的鏈接,我已經把android:autoLink="web"如何把鏈接放在TextView上?

<TextView xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/text_prix" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:autoLink="web" 
    android:padding="10dp" 
    android:textSize="16sp" > 
</TextView> 

,當我的鏈接點擊,我有它正確打開瀏覽器。但我想在textview上顯示每個鏈接的TAG。我怎樣才能做到這一點? 例如: 對於www.google.fr鏈接,我想在ListView「Google」上顯示。 這可能嗎? 謝謝你的幫助。

回答