[android] Pie (POS) 에서의 text [android] Pie (POS) 에서의 text https://android-developers.googleblog.com/2018/07/whats-new-for-text-in-android-p.html PrecomputedText -TextView 에서 text 의 measure, layout 에 엄청 많은 일을 한다.font file 을 읽고, 상형문자를 찾고, shape 를 결정하고, bounding box 를 measure 하고, cache 를 한다.그리고 이 모든 일들은 UI Thread 에서 이루어진다. ( frame 하락을 가져온다. ) 이 중에서 text measuring 이 90% 시간을 차지한다.이 문제를 해결하기 위해 Jetpack 의 일부로 PrecomputedText 가 들어갔.. 2019. 7. 25. 반응형 이전 1 다음