原來APIDemo中就有範例了

 

string.xml

<string name="registation"><a href="http://m.camangimarket.com/reg.html">"Registation"</a></string>

 

layout.xml

<TextView

android:id="@+id/textview_registation"

android:layout_width="fill_parent"

android:layout_height="wrap_content"

android:text="@string/registation"

/>

 

Java

TextView textview_registation = (TextView) findViewById(R.id.textview_registation);

textview_registation.setMovementMethod(LinkMovementMethod.getInstance());

arrow
arrow
    全站熱搜

    狼翔月影 發表在 痞客邦 留言(2) 人氣()