-2

How to show Java code in a TextView?

enter image description here

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

0

you can store your code as HTML and parse HTML using HTML.fromHtml(String) to show styled HTML in your TextView. for more information, take a look at here

Mohammad Rahchamani
  • 5,002
  • 1
  • 26
  • 36