TextView에서 Html 태그를 사용하고 있습니다. 하지만 제대로 표시 할 수 없습니다. 나를 안내하십시오.안드로이드의 Textview에서 HTML 태그를 설정하는 방법은 무엇입니까?
예를 들어, Payemt 빌 : 당신은 당신의 청구서를 지불 할 수 있습니다 : • 메일 작성자 : 그것에 ABC ABC ABC 당신의 송장과 수표를 보내. 전화 번호를 잊지 마세요. • 본인 : 본사의 접수 담당 직원. • 온라인 : 아래 양식을 작성하십시오.
당신이 당신의 청구서에 대한 질문이있는 경우 1000-1000-100
내 코드는에서 우리의 청구 부서에 문의하시기 바랍니다,
txtPayBillOne.setMovementMethod(LinkMovementMethod.getInstance());
String strPayBillOne1="<p>You can pay your bill:<ul><li><b>By mail:</b> sending a check with your invoice abc abc abc on it. Don’t forget to include your Phone no. </li><li><b>In person:</b> with any of our front desk receptionists. </li><li><b>Online:</b> fill out this <a href=\"https://payments.cboss.com/clients/pymt/maryscenterclinic/paymentlaunch/default.aspx\">form.</a></li></ul><br />If you have questions about your invoice, please call our billing department at 1000-1000-1000</p>";
txtPayBillOne.setText(Html.fromHtml(strPayBillOne1);
방법이 형식에 사용할? TextView에서이 형식을 얻는 방법은 무엇입니까? 당신이 당신의 values.Hope를 제공 할 수있는 입력의 장소에서 텍스트보기
String input = "<b>bold</b>";
myTextView.setText(Html.fromHtml(input));
에 HTML을 추가 할 수 있습니다 같은
당신 코드 – zohar
@zohar를 추가하시기 바랍니다 도움이 될 것입니다 내 업데이트 된 질문. – Reena
가능한 [TextView에서 HTML을 표시하는 방법?] (http://stackoverflow.com/questions/2116162/how-to-display-html-in-textview) – Boggartfly