/PrecomputedTextDemo

PrecomputedTextCompat API Demo

Primary LanguageKotlin

PrecomputedTextCompat demo

Build Status Version

This project is demonstration of PrecomputedTextCompat usage. There is two modes: default and with new API. It can be switched in toolbar menu.

Results

With current configuration new API is slower and worse than simple with TextView.setText() call.

Original API

Fast enough calculations of layout on top device.

screenshot_20181118-220544

PrecomputedTextCompat API

Very big spikes with probably same level of measure/draw difficulty between them.

screenshot_20181118-220522