Floating Action Button for lower version

android

Solution

You can now use the FloatingActionButton from the support-design library. Add this dependency to your gradle build file:

compile 'com.android.support:design:22.2.0'

And then add the FloatingActionButton to your layout file:

 <android.support.design.widget.FloatingActionButton
        android:id="@+id/fab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="end|bottom"
        android:layout_margin="@dimen/fab_margin"
        android:src="@drawable/ic_done" />

Example project from Chris Banes: https://github.com/chrisbanes/cheesesquare.

Problem

Is there a way I can Achieve the floating button to work on 4.0 and later android?? I've seen it on google plus but I haven't found any tutorial. Only for android l preview. What did google+ use to achieve it?

Original source

Related problems