Write For Us

TextView: Now with Auto-Sizing

E-Commerce Solutions SEO Solutions Marketing Solutions
155 Views
Published
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 Support Lib 26, 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 check out these links!
Autosizing TextViews guide:
Google I/O 2017 talk on “What’s new in Support Library”:
Subscribe to the Android Developers channel here:
Category
Phone
Sign in or sign up to post comments.
Be the first to comment