2014-06-19 4 views
1

array.xml을 사용하여 목록을 만들고 listView에 채우는 중 문제는 listItem에 채울 때보 다 arrayItem decsription 내에 hyperLinked 텍스트를 추가해야한다는 것입니다. 내 웹 사이트에 연결해야합니다 !!!array.xml에 하이퍼 링크 텍스트 추가

<string-array name="about_us"> 
    <item><b>What is it all about ?</b>\n\this is a mobile application </item> 
    <item><b>Where all goods go ?</b>Currently the goods can get delivered only in India.</item> 
    <item><b>How will I Know more?</b>Click [HERE] to go to our website</item> 
    </string-array> 

직접 할 수있는 방법은 무엇입니까?

답변

0
Try this way,hope this will help you to solve your problem. 

<string name="link">1.Click &lt;a href="http://www.google.com"> here &lt;/a> to goto wesite.</string> 

textView.setMovementMethod (LinkMovementMethod.getInstance()); 
textView.setText(Html.fromHtml(getString(R.string.link))); 
+0

나는 너를 못 얻는다! 그것의 텍스트 상자와 문자열로 내가 이것을 시도 할 수 있지만 어떻게 그것을 더 많은 텍스트가 포함 된 배열에서 할 수 있습니까? (텍스트 * 링크 * 더 많은 텍스트 종류의 형식) –

+0

내용과 함께 일부 문자열 배열을 게시 할 수 있습니까? –

+0

나는 questoin을 업데이 트했습니다 .. 주요 문제는 콘텐츠를 보여주는 확장 가능한 ListView (사용자 정의)를 사용하고 있습니다. 어댑터를 사용하면 어떻게 웹에 연결된 ont 단어를 얻을 수 있습니까 ??? –