Autosizing TextViews

suggest change

Introduction

An autosizing TextView resizes its text so the text fits inside its bounds.

Android O lets you tell a TextView to expand or contract the text size automatically to fill its layout, based on the TextView's characteristics and boundaries.

You can set up autosizing in either code or XML.

There are two ways to set up an autosizing TextView: granularity and preset sizes.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents