Tuesday, November 3, 2015

how to Link web page from android

Use this bellow code in xml layout

<TextView   
 android:layout_width="wrap_content"  
  android:layout_height="wrap_content"  
  android:autoLink="web"   
  android:textSize="15sp"  
  android:layout_marginTop="10dp"  
  android:layout_centerHorizontal="true" 
  android:text="google.com"   
  android:textColor="#000"   
  android:layout_below="@+id/textView"  
  android:textStyle="italic"/>




Use this bellow code in android manifest


<uses-permission android:name="android.permission.INTERNET"></uses-permission>
 

No comments:

Post a Comment