Floatingactionbutton
There is a guide to using the library that explains how and when to use the floating button correctly in new or existing projects.
Example of use:
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_hoje_eh_sexta_feira" />
Dependency libraries
build.Gradle
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
}
Google launched a support tool during the
Google I/O 2015.
Floatingactionbutton Animated
Check the Floating Action Button of Material Design of Google itself.
Oops, good afternoon. Do you have a print of any visual example of this button? Would it be the Float Action Button? (http://www.androidhive.info/wp-content/uploads/2015/12/android-floating-action-button-2.png)
– Antonio S. Junior
Antonio, exactly that, I didn’t really know the name of this button, I looked as widget but I couldn’t find anything I wanted. Do you know the minimum version of support for this button? Thanks Antonio!
– user11890
You say create a component that you can add the home screen for example... How there is for weather forecast etc..??
– Marco Giovanni
Marco, no, it would be a Float Action Button even, as I said, I didn’t really know what was called this button that was floating on the screens, I thought it was a widget, but I was wrong.
– user11890
Whoa, good afternoon, guys. The button would then be the FAB (Float Action Button) and to create it has a nice tutorial here: http://www.android4devs.com/2015/03/how-to-make-floating-action-buttonfab.html
– Antonio S. Junior
See example: http://answall.com/questions/125807/painel-floating
– Reginaldo Rigo
I made an issue to your question to include the new details, can do also you whenever you ask. If you don’t like it you can revert to the previous edition.
– Jorge B.