So I'm making a simple calculator app and I need to make the numbers inside of the textview resize automatically when the numbers reach the edges of it. Now, if I'm using TextView.setText(TextView.getText()+"5") it does autosize no problem, but for simplicity sake I like to use TextView.append("5") . However, when using the append function the TextView resize seems to not update and doesn't size the text at all.
I've tried using both pre API level 26 resizing and post level 26 resizing. Example of pre API level 26 resizing:
android:layout_height="60dp"
app:autoSizeTextType="uniform"
app:autoSizeMinTextSize="12sp"
app:autoSizeMaxTextSize="100sp"
app:autoSizeStepGranularity="2sp"
Does anyone have any idea how I could do this? Or am I stuck using TextView.setText(TextView.getText()+"5")?
Thanks in advance!