Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't do anything. #65

Closed
2fours opened this issue May 18, 2016 · 2 comments
Closed

Doesn't do anything. #65

2fours opened this issue May 18, 2016 · 2 comments

Comments

@2fours
Copy link

2fours commented May 18, 2016

In a relative layout. Text size stays the same.

    <me.grantland.widget.AutofitTextView
        android:id="@+id/tvMessage"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/lButtons"
        android:layout_below="@+id/barcode_scanner"
        android:layout_margin="10dp"
        android:gravity="center"
        android:textSize="24sp"
        ads:minTextSize="10sp"
        />
@2fours
Copy link
Author

2fours commented May 18, 2016

Looks like you need to set the maxLines to get it to work. Now I see that using a margin the text does not fit properly.

@grantland
Copy link
Owner

Yeah, that's required. I'll be closing this since it's resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants