I developed Android Application and I want to use extended floating button like floating button on Path Application in my layout. I hope someone can give me example about the code how to make this things. Thank You.
3 Answers
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hellooooo"
app:icon = "@drawable/pass_resource_here"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
</com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton>
-
You can add icon and text at the same time in the new ExtendedFloatingActionButton. Apr 17, 2020 at 19:41
-
Do you know how to increase the duration while FAB is extanding/shrinking? May 8, 2020 at 15:59
Here's a detailed tutorial on how to create a good extended floating button with animations https://www.learn2crack.com/2015/10/android-floating-action-button-animations.html
-
It's working nicely. Thank you so much for helping me solve my problem. Feb 19, 2016 at 6:50
Try using this library and modify it to your liking by using the sam ple project in the library