about 상자에 Twitter 프로필에 대한 링크를 추가하려고합니다. 이메일 주소 및 웹 주소와 같은 '보통'링크 about.xml에HREF를 Android strings.xml에서 사용할 수 없습니다.
android:autoLink="email|web"
에 의해 처리되지만, 트위터 프로필 페이지 내 strings.xml의에서 HTML 코드를 사용해야합니다. 시도 : 약
<string name="twitter">Follow us on <a href=\"http://www.twitter.com/mytwitterprofile">Twitter: @mytwitterprofile</a></string>
about 상자에 html 마크 업을 표시합니다. 텍스트를 표시
<string name="twitter">Follow us on <a href="http://www.twitter.com/mytwitterprofile">Twitter: @mytwitterprofile</a></string>
는 "트위터에 우리를 따르라 : @mytwitterprofile를"
는 I도 해봤지만 하이퍼 링크가 아닙니다.
어떻게하면 간단한 작업을 할 수 있습니까?!
건배, 베리
당신이 문자열을 추가하려면 어떻게 당신의 상자? – rajath
TextView textView = (TextView) findViewById (R.id.about_content); \t \t textView.setTextColor (Color.WHITE); \t \t textView.setText (getString (R.string.about_text, getString (R.string.twitter), getString (R.string.email_address), getString (R.string.website))); – barry
이 게시물이 도움이되는지 확인해보십시오. http://stackoverflow.com/questions/1997328/android-clickable-hyperlinks-in-alertdialog – rajath