I would like to create a floating action button (to add items to a listview), like google calendar, maintaining compatibility with pre-lollipop Android versions (before 5.0)
I've generally used xml drawables to create shadow/elevation on a pre-lollipop widget. Here, for example, is an xml drawable that can be used on pre-lollipop devices to simulate the floating action button's elevation.
-
-
-
-
-
-
-
-
-
-
-
-
In place of ?attr/colorPrimary you can choose any color. Here's a screenshot of the result:
