Comments (2)
Hi asbozh,
Thank you.
This is the desired behavior.
If you refer ActionButton documentation you can find there an explanation of the Shadow Responsive Effect, which is enabled by default:
Note, that having Shadow Responsive Effect enabled leads to increasing of the ActionButton general view size. In this case view size calculated based on the maximum value of the shadow radius. This means, that event if there is a place near the ActionButton unfilled, it is actually used by Shadow Responsive Effect
That is, if you have it enabled the additional margin space is added. It is used by Shadow Responsive Effect, so that when shadow is increasing (PRESSED state) these spaces are filled with shadow.
If there were no space, in case when ActionButton is pressed and Shadow Responsive Effect enabled, it will be moved in an unexpected way (instead of just increasing the shadow).
So far as there is no possibility to draw the shadow outside the View this is the only solution to implement Shadow Responsive Effect for pre-Lollipop devices.
May be in future Google will provide a more convenient way to apply elevation using compat library, but this is not yet available.
So in your case I suggest you either to disable Shadow Responsive Effect or change the offset values (like in your screens).
from fab.
Thanks.
from fab.
Related Issues (20)
- Icon is outside the circle HOT 3
- move() method smearing on KitKat with snackbar. HOT 6
- FAB sides are not perfectly round HOT 22
- Needs compatible method with new CoordinatorLayout. HOT 2
- xml parsing error while setting the animations HOT 7
- Is the way to have margin 0dp? HOT 2
- Render issue HOT 7
- setSize method doesn't work
- Remove deprecated API, fix unknown API references HOT 7
- Is it possible to use Text and Font_awesome with this library ? HOT 1
- Ripple state reset on UP_ACTION outside of FAB HOT 8
- cant set color of button HOT 5
- Background of the button HOT 1
- Can't render XML HOT 1
- Can Drag? HOT 1
- no resource found logback-android-core HOT 1
- Prefix attributes to avoid collisions with other libraries
- Does the actionButton have some playHideAnimationCompleationListner? HOT 1
- Ripple effect gets interrupted as soon as you release the touch input from the fab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fab.