-
Notifications
You must be signed in to change notification settings - Fork 817
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
Request: allow to use any size #108
Comments
+1 (although the size it's stated in the guidelines, it would be useful for in some cases) |
I also think that the size should include the shadow, to avoid confusion of why it gets truncated. |
Just opened a pull request from my fork, where I implemented this feature out of own needs: Fingers crossed that it gets pulled in ;-) In the meantime, feel free to take my branch at Just add a fab_size attribute to the xml where you include the button in layout, and give it a dimension value. |
Until this is integrated in the library, I just scale the button as follow: fab.setScaleX(0.75f);
fab.setScaleY(0.75f); Didn't test it with shadow enable though. |
You can also override R.dimen.fab_size_normal or R.dimen.fab_size_mini to anything you want by adding the same dimensions into your dimens.xml:
Their default values are 40dp and 56dp. |
mini and normal aren't always enough...
I assume that the problematic part here is the shadow, but maybe there is a way to create it on demand?
The text was updated successfully, but these errors were encountered: