I am building an offline android dictionary app and I want to make some of text bold stored in sqlite database. So how can I put html tags like for bold < b > My Text< /b > and it should show bold in my app text.
Asked
Active
Viewed 28 times
0
-
You do not have to do this . Use `SpanableString` with `TypefaceSpan` during setting text . You can follow https://stackoverflow.com/questions/6612316/how-set-spannable-object-font-with-custom-font . – ADM Mar 27 '18 at 19:25
-
Just save words as normal text and use the Solution above . It will provide you the flexibility for any changes in future. – ADM Mar 27 '18 at 19:27