I\'m using the new FloatingActionButton from the Google Design Library and I am getting some strange padding/margin problems. This image (with developer layout options on) i
In layout file set attribute elevation to 0. because it takes default elevation.
app:elevation="0dp"
Now in activity check api level greater than 21 and set elevation if needed.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { fabBtn.setElevation(10.0f); }