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
.
One-by-one comparison: Removing the
TextView
and instead using aPaint
-Object to draw the text. Is inflation faster or slower? Is the performance after inflation affected at all?A layout with very many views, including a large number of
TextView
s 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 theTextView
s and instead using aPaint
-Object to draw the texts once upon inflation benefit performance? How does it affect performance after inflation?