I noticed that if most of the text inside the EditText View is colored with a different color (for example, ForegroundColorSpan), the EditText becomes very slow when the number of lines is large. (> 500 lines)
I am trying to use EditText to enter code and select syntax using a Spannable object.
Anyone have a solution to this problem? Do I need to write my own EditText view? If so, how to do it?
source share