Open jayesh83 opened 1 year ago
@Aghajari thanks for writing back.
one question, how can I make it configurable? Like for my use case I'd like to have say below custom tag
<fontSize value="18sp">12/20</fontSize> Orders Completed
can you help with like how do I also parse the value out of my custom handler?
Hello @jayesh83
Android's Html class does not offer direct support for setting an exact font size. Nevertheless, there are several alternative approaches to achieve the desired result:
<big>
and<small>
for relative font sizes. Additionally, heading tags such as<h1>
,<h2>
, etc., offer varying font sizes.Usage: