0
이메일 본문에 표를 표시하고 싶습니다. 코드는 다음과 같습니다.이메일 본문에 Html 표시 Android
stringBuilder.append("<html>" +
"<body>"+
"<table border=\"1\">"+
"<tr>"+
"<th>Name</th>"+
"<th>Telephone</th>"+
"<th>Telephone</th>"+
"</tr>"+
"<tr>"+
"<td>Bill Gates</td>"+
"<td>555 77 854</td>"+
"<td>555 77 855</td>"+
"</tr>"+
"</table>"+
"</body>"+
"</html>");
final Intent intent = new Intent(android.content.Intent.ACTION_SEND);
intent.setType("text/html");
intent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Checklist Information");
intent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(stringBuilder.toString()));
표가 보이지 않고 메일 본문에 간단한 텍스트가 표시됩니다.
도와주세요.
다음 전자 메일 본문에 테이블을 어떻게 표시해야합니까? 그것의 나의 필요 조건. – Debarati
여기를보세요 .. http://stackoverflow.com/questions/7787171/sending-html-email-in-android-using-table-etc-is-there-really-no-relativel – Blackbelt
나는 이미 그것을 연구했다. . 그게 나를 도와주지 않는 것. – Debarati