RealTextView icon indicating copy to clipboard operation
RealTextView copied to clipboard

Bug: doesn't really change font down to the min size, and even far from it

Open AndroidDeveloperLB opened this issue 10 years ago • 0 comments

On the sample itself, there are 2 examples that say that the TextView will shrink down to X sp, but it actually doesn't, even though the size is tiny and there is more text to show, so the result is truncated text with a much larger text size than the claimed min-size.

I've added 2 normal TextViews at the top of the layout with the font size that was claimed, to show the issue:

view_activity_example_main.xml

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="this is how 5sp looks like"
        android:textSize="5sp"/>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="this is how 8sp looks like"
        android:textSize="8sp"/>

and the result:

device-2016-02-09-123045

also, btw, it was quite hard to import the project, as there are a lot of issues in it (outdated stuff, and buildTypes item that can't be used)

AndroidDeveloperLB avatar Feb 09 '16 10:02 AndroidDeveloperLB