A
A
artshelom2017-08-30 09:57:18
Android
artshelom, 2017-08-30 09:57:18

How to turn the code in the textView tags into a normal view??

What libraries or what to use to also show the code, and not the text in the tags??

Например
Тут мог быть какой-то код

And if you got a picture, then you need to parse and insert the picture through the imageView, or is there a way in the textView itself, leave everything ??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Myvrenik, 2017-08-30
@artshelom

TextView is too limited for such purposes. It makes sense to use a WebView, prepare all the styles in advance and embed HTML into it using JS. Thus, you can format the text as you like and insert pictures. The only negative is performance, but if you have only one WebView that displays content, and not in a list, then this is not a problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question