Android Jetpack: Autosizing TextView

4 Просмотры
Издатель
For the best user experience with text, material design recommends using a dynamic type instead of smaller type sizes or truncating larger-size text. With Android O and Jetpack, TextView gains a new property: autoSizeTextType which allows the text to scale uniformly, when working with dynamic content. You can fine tune the auto-size by setting the minimum and maximum values and the step granularity, or by using preset text sizes.

For more info:
Autosizing TextViews guide →
Google I/O 2017 talk on “What’s new in Support Library” →

Watch more Android Jetpack videos here →

Subscribe to the Android Developers channel here →

#jetpack #featured
Категория
Приключения онлайн
Комментариев нет.
Яндекс.Метрика