How do I make my button look more like the Floating Action Button?
My button so far looks close but as yet, doesn\'t look the same. What other changes would you suggest?
Button in a layout:
...
margin
provides some space for the elevationgravity
centers the background drawable and the textstateListAnimator
set to null so it doesn't mess with elevation (it can be animated via this)res/drawables-v21/add_button_selector.xml
-
res/drawables/add_button_selector.xml:
res/drawables/add_button.xml:
res/drawables/add_button_selected.xml: