Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 590 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 590 Bytes

StaticLayoutView

a pre-render TextView demo

This demo use StaticLayout to render text in a custom TextView and create the StaticLayout in another thread before enter the UI, and these StaticLayout draw in a dummy canvas which warm up the TextLayoutCache in the system. And these optimization improve the performance of showing complicated text(which may include many spans, emoji) in a ListView

for the detail of this project, please read this post(in chinese): http://ragnraok.github.io/textview-pre-render-research.html