0
 <TextView
        android:id="@+id/phone"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_below="@+id/topic"
        android:textStyle="normal"
        android:textColor="#150a18"
        android:text="  +9177xxxxxx99"
        android:autoLink="phone"
        android:gravity="center"
        android:drawableLeft="@drawable/ic_phone_black_24dp"
        android:drawableStart="@drawable/ic_phone_black_24dp"

        />

autoLink not working. When I click on textview nothing happens.

Any suggestions.

Vishwesh Jainkuniya
  • 2,821
  • 3
  • 18
  • 35

3 Answers3

0

your number should be maximum 10 digit. take a look at link bellow : Android:autoLink not working fully on my 4.4 device

Community
  • 1
  • 1
pouyan
  • 3,445
  • 4
  • 26
  • 44
0

For some reason it does not work properly. So, add below code also,

TextView t2 = (TextView) findViewById(R.id.text); t2.setMovementMethod(LinkMovementMethod.getInstance());

PaulZJ
  • 1
-1

You need to create a string in the resources area.

Support: click here

Maybe this will help