原來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());
全站熱搜
留言列表