I need to render bellow html in textView
but don't show any thing:
<link rel="stylesheet" type="text/css" href="https://test.com/theme/mou_classic/css/vazir.css">
<style>
@font-face {
font-family: Vazir;
font-style: normal;
font-weight: bold;
src: url('https://test.com/theme/mou_classic/fonts/Vazir/ttf/Vazir-Bold.ttf') format('truetype');
}
body {
font-family: Vazir, Tahoma;
font-size: 14px;
font-weight: normal;
line-height: 2em;
}
h5 {
color: maroon;
font-size: 16px;
}
h6 {
color: gray;
font-size: 11px;
}
</style>
<div style="border: solid 1px silver;width:80%;padding: 25px;display: table;margin: auto;direction: rtl">
<h1 style="text-align: center">
RRTEDFGDF
</h1>
<div style="display: table;margin: auto">
<img src="https://test.com/images/news/137.jpg" style="border-radius: 5px;margin: 10px auto">
</div>
<h6>
WERWER
</h6>
<div>
QWEWERRR
<h5>WW </h5>
AAAA
</div>
<table border="1" style="border-collapse: collapse;margin: auto;width: 50%">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>11</td>
<td>12</td>
<td>13</td>
</tr>
</table>
</div>
I render like bellow:
binding.txtHtml.text = Html.fromHtml(resources.getString(R.string.html))