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
android textview android-textview autoresize


source to share


No one has answered this question yet

See similar questions:

800
Autoscale TextView text to insert within borders
7
Auto Scale font size

or similar:

1844
How to place text horizontally and vertically in a TextView?
1264
How can I automatically resize the image to fit the container div?
800
Autoscale TextView text to insert within borders
701
How to change fontFamily TextView in Android
683
How do I place a border around an Android text view?
565
Making a scrolling TextView on Android
374
Android TextView Text Justification
323
How to set font style to bold, italic and underline in Android TextView?
228
Auto-fit TextView for Android
6
How do I play an audio file in Android?



All Articles
Loading...
X
Show
Funny
Dev
Pics