-2

How to show Java code in a TextView?

enter image description here

Phantômaxx
  • 37,352
  • 21
  • 80
  • 110

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
  • 4,696
  • 1
  • 26
  • 36