0

I know from this question that paint does not have a high memory efficiency. However i am wondering about the performance differences between android.widget.TextView of which the text is never changed and android.graphics.Paint.

  1. One-by-one comparison: Removing the TextView and instead using a Paint-Object to draw the text. Is inflation faster or slower? Is the performance after inflation affected at all?

  2. A layout with very many views, including a large number of TextViews of which the text is never changed. Due to the large number of views, the inflation of the layout takes a while. Would removing all the TextViews and instead using a Paint-Object to draw the texts once upon inflation benefit performance? How does it affect performance after inflation?

diwasip777
  • 15
  • 4

0 Answers0