Android 带alpha的FloatingActionButton背景提示
我在申请表中添加了一个fab。Android 带alpha的FloatingActionButton背景提示,android,floating-action-button,Android,Floating Action Button,我在申请表中添加了一个fab。 我将背景提示设置为不透明(#44FF0000)。 但是里面有一个小圆圈 如何删除这个小圆圈? 这是我的密码 <android.support.design.widget.FloatingActionButton android:id="@+id/close" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lay
我将背景提示设置为不透明(#44FF0000)。
但是里面有一个小圆圈 如何删除这个小圆圈?
这是我的密码
<android.support.design.widget.FloatingActionButton
android:id="@+id/close"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:layout_marginBottom="70dp"
android:layout_marginRight="80dp"
android:src="@drawable/phone"
app:backgroundTint="#44FF0000" />
谢谢你不能删除“这个小圆圈”。这是由背景下绘制的阴影造成的
备选方案a)
将纯色背景与任何阴影一起使用
备选方案b)
不要将阴影/立面与半透明小部件一起使用。对于晶圆厂:
<...FloatingActionButton
app:elevation="0dp"
app:pressedTranslationZ="0dp"/>
您不能删除“这个小圆圈”。阴影绘制在背景下。将纯色背景与任何阴影一起使用。案件结案。