0

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 3

1
  <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>
2
  • You can add icon and text at the same time in the new ExtendedFloatingActionButton.
    – JuJu Juned
    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
0

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

1
  • It's working nicely. Thank you so much for helping me solve my problem. Feb 19, 2016 at 6:50
0

Try using this library and modify it to your liking by using the sam ple project in the library

https://github.com/oguzbilgener/CircularFloatingActionMenu

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.