Async Text Loading in Android with PrecomputedText

Robert Levonyan
Oct 4 · 5 min read
Image from Dribbble (https://dribbble.com/shots/6032749--050-Writer-s-Flow)
textView.text = "Hello World"

Text Architecture


Defining the text

android:breakStrategy = "simple"
android:breakStrategy = "balanced"
android:breakStrategy = "high_quality"
android:hyphenationFrequency = "full"

PrecomputedText

An example how to use PrecomputedText
Usage of Text Futures with RecyclerView

Conclusion

Resources


    Robert Levonyan

    Written by

    Android Developer. Find my projects here: https://robertlevonyan.com

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade