简体   繁体   中英

Extended Android Floating Button

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.

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

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

https://github.com/oguzbilgener/CircularFloatingActionMenu

这是有关如何创建带有动画的良好扩展浮动按钮的详细教程https://www.learn2crack.com/2015/10/android-floating-action-button-animations.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM