效果:
自己做了一个依赖:根目录build.gradle中
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
在build.gradle中添加
dependencies { implementation 'com.github.hahage001:LZTmusketeer:v1.0.0' }
添加依赖的地址和本文的有所不同。(mus.cn.suspendbutton.DragFloatActionButton)
<mus.cn.suspendbutton.DragFloatActionButton android:layout_width="200px" android:layout_height="200px" android:src="@mipmap/ic_launcher" app:backgroundTint="#253aac" app:rippleColor="#33728dff" app:elevation="6dp" app:pressedTranslationZ="12dp" android:clickable="true" android:focusable="true" />
本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。
我来说两句