0
내 안드로이드 애플 리케이션에서 나는 웹 사이트를 여는 링크로 사용하고있는 textview를 가지고 있습니다. 그러나 textView
alert pops up
을 클릭하면 브라우저가 응답하지 않습니다.TextView를 Android 앱용 링크로 사용 하시겠습니까?
<string name="MoneyControl"><a href="http://www.moneycontrol.com/stocksmarketsindia/"> 1. Money Control</a></string>
<TextView
android:id="@+id/moneycontrol"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/MoneyControl"
android:textSize="15dp" />
link = (TextView) findViewById(R.id.moneycontrol);
if (link !=null){
link.setMovementMethod(LinkMovementMethod.getInstance());
}
보십시오이'안드로이드를 설정하는 linksClickable = "true"로'당신'TextView' 및 'link.setMovementMethod (LinkMovementMethod.getInstance());를 제거하십시오. –
시도해주세요. @stackoverflow.com/a/11259909/1012284 –
@ 간단한 계획이 제대로 작동하지 않습니다. –