Postingan

Menampilkan postingan dengan label emojis

What’s new for text in Android Q

Gambar
Posted by Florina Muntenescu , Android Developer Advocate Displaying text is an important task in most apps, so in Android Q we're continuing to introduce new features to support your needs and improve performance. We disabled hyphenation by default, enabled creating a typeface using multiple fonts or font families, exposed the list of fonts installed on the device, and improved some of the most-used text styling APIs. Hyphenation is off by default in Android Q and AppCompat v1.1.0 Our performance tests showed that when hyphenation is enabled, up to 70% of the time spent on measuring text is on hyphenation. Hyphenation takes up to 70% of the time spent measuring text Given that hyphenation often isn’t needed for all TextViews in an app, and because of the impact on performance, we decided to turn hyphenation off by default in Android Q and AppCompat v1.1.0. If you want to use hyphenation, you need to manually turn it on in your app by setting the hyphenation frequency to normal. Y...