Floating action button for lower version

Is there a way that I can achieve a floating button to work with 4.0 and later versions of android ??

I saw this on google plus, but I did not find any tutorial. Android preview only. What did Google + use to achieve it?

enter image description here

enter image description here

+9
android
Jul 07 '14 at 7:28
source share
6 answers

Now you can use the FloatingActionButton in the support library. Add this dependency to the gradle build file:

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

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" /> 

Chris Banes sample project: https://github.com/chrisbanes/cheesesquare .

+9
Jun 03 '15 at 11:04
source share

I created an open source library called FloatingActionButton . This is Google+ as a floating action button that responds to list scroll events. It becomes visible when the list view scrolls and is invisible when scrolling down. API Level 14+.

Demo

+6
Jul 25 '14 at 9:30
source share

Here is one free, free floating point button library for Android. It has many settings and requires SDK version 9 and above.

enter image description here

Full demo video

 dependencies { compile 'com.scalified:fab:1.1.2' } 
+4
Feb 06 '15 at 11:51
source share

Original post here .

You can use this library , it works fine with Android 2.1, API level 7.

It is so easy to include it in your project:

build.gradle

 dependencies { compile 'com.shamanland:fab:0.0.6' } 

layout.xml

 <com.shamanland.fab.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/your_image" /> 

image

+3
Sep 09 '14 at 7:34
source share

You can use this demo of FloatingView . This demo is from API 11.

Here are all the parts necessary for the implementation of the code. FloatingView Step by Step

+1
Jul 07 '14 at 7:51
source share

Try this library, https://github.com/navasmdc/MaterialDesignLibrary

Easily adapt to your project with Android Studio.

-one
Jan 28 '15 at 2:15
source share



All Articles