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 use this on a Button? #83

Open
erikswed opened this issue Feb 19, 2017 · 0 comments
Open

How to use this on a Button? #83

erikswed opened this issue Feb 19, 2017 · 0 comments

Comments

@erikswed
Copy link

erikswed commented Feb 19, 2017

I could not get the text to autofit testing both in a ConstraintLayout and LinearLayout,
Using this code:

<me.grantland.widget.AutofitLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    >
    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:singleLine="true"
        />
</me.grantland.widget.AutofitLayout>

Using Android material theme which have default capital letter on buttons

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

1 participant