The reason Android TextView call Settext () time-consuming

When textview wide set time wrap_content the underlying calls checkForRelayout function that restarts the layout according to the number of characters

Thus the width is set to a fixed value or match_parent time will significantly reduce the rendering time

Guess you like

Origin www.cnblogs.com/yjpjy/p/10958787.html