[带图标和文字的浮动按钮]
我想这样做,但不知道如何申请fab
<selector xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<ripple android:color="@color/white" tools:ignore="NewApi">
<item>
<shape android:shape="rectangle">
<solid android:color="?android:colorAccent" />
<corners
android:bottomRightRadius="20dp"
android:bottomLeftRadius="20dp"
android:topLeftRadius="20dp"
android:topRightRadius="20dp" />
</shape>
</item>
</ripple>
</item>