I’m looking for a way to when I change a screen size it will proportionally resize the text.
Currently I tried
Auto Scale TextView Text to Fit within Bounds but it doesn’t seems to be working. but I’m not sure I do it the right way or not. I’m now currently calling by
AutoResizeTextView test = new AutoResizeTextView(this);
test=(AutoResizeTextView)findViewById(R.id.test456);
test.resizeText(); // I call this to resize.. am I right?
XML
<com.mypackage.AutoResizeTextView
android:id="@+id/test456"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" />
You don’t need to call
AutoResizeTextView test, you can sayTextViewsince the class extendsTextView. I don’t see why you’d need to callresizeText()either.Either way, here’s a custom class I like to use to auto re-size text.