Tutorial by Examples

In Java: Call the setAutoSizeTextTypeUniformWithConfiguration() method: setAutoSizeTextTypeUniformWithConfiguration(int autoSizeMinTextSize, int autoSizeMaxTextSize, int autoSizeStepGranularity, int unit) In XML: Use the autoSizeMinTextSize, autoSizeMaxTextSize, and autoSizeStepGranularity att...
In Java: Call the setAutoSizeTextTypeUniformWithPresetSizes() method: setAutoSizeTextTypeUniformWithPresetSizes(int[] presetSizes, int unit) In XML: Use the autoSizePresetSizes attribute in the layout XML file: <TextView android:id=”@+id/autosizing_textview_presetsize” android:la...

Page 1 of 1