I would like to auto-size my text. But it is in linearLayout and I m using weight. I tried things like that :
app:autoSizeTextType="uniform"
android:autoSizeMinTextSize="2sp"
android:autoSizeMaxTextSize="100sp"
android:autoSizeStepGranularity="2sp"
but nothing worked ! Can someone help me ??? (I searched a lot but nothing worked) Thank you !
Well, I resolved my problem :
What I'm doing is taking the size of a RelativeLayout, and my TextView is inside. Then I dimensioned the TextView programmatically and use setAutoTypeUniform function to fit the text in my layout.
well guys, if you have any problem, tell it to me. I so happy that it works for me !