0

Why do we need a StaticLayout? What does it do that we can't do with a TextView?

The reason I'm asking this is because that I use"Exo Player" which uses StaticLayout to show the subtitles And I am having some troubles with RTL on it. The punctuation are not displayed correctly so I want to replace it with TextView. Any reason I shouldn't do it?

Thanks!

roiberg
  • 13,629
  • 12
  • 60
  • 91

1 Answers1

1

TextView is a View with all the overhead of a View object, and all the abilities of a View object. StaticLayout is meant for drawing fixed text directly on to a canvas.

yedidyak
  • 1,964
  • 13
  • 26