Auto Scale TextView Text to fit within Bounds (Android 4x issues)
I am testing the following code (developed by Chase) link-> Auto-scaling TextView text to insert within and the code works fine on Android 2x-3x BUT but does not work on 4x. For some reason, I cannot directly post comments on Chase's post, so I decided to open a new thread. It would be helpful If anyone could guess why the code stops working on Android 4x? I tried myself, but nothing stood :(. I use the following layout to run the code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<chase.test.com.AutoResizeTextView
android:id="@+id/resizingText"
android:textSize = "250sp"
android:gravity = "center"
android:text = "1 B C abc d abcd1 abcd2 abcd3 abcd4 abcd5 abcd6 abcd7"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
</LinearLayout>
+3
source to share
No one has answered this question yet
See similar questions:
or similar: