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

how to get origin text size #97

Open
walterFeng opened this issue Aug 1, 2018 · 2 comments
Open

how to get origin text size #97

walterFeng opened this issue Aug 1, 2018 · 2 comments

Comments

@walterFeng
Copy link

getTextSize() return max value of textSize, how to get current text size?

@sjaramillo10
Copy link

Hey @walterFeng not sure if you are aware that the standard Android TextView now supports 'auto size' text out-of-the-box see here. It may return the correct size :)

@walterFeng
Copy link
Author

thanks @sjaramillo10 . but in Autosizing TextViews, the text box is the specified height not width:

<TextView
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:autoSizeTextType="uniform" />

it is not working:

<TextView
    android:layout_width="200dp"
    android:layout_height="wrap_content"
    android:autoSizeTextType="uniform" />

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