[英]Android CardView/FloatingActionButton transparent color not show properly
我是android工作室的新人。
我在旁边创建了一个应用程序,我使用 20% 的透明颜色,例如#C8FF8066
正常颜色是#FF8066
在卡片视图和浮动按钮中显示在侧面菱形阴影中?
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/createBtnFloating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:backgroundTint="@color/AppColor"
android:src="@drawable/plus"
android:layout_marginBottom="20dp"
android:layout_marginEnd="20dp"
android:transitionName="CreateNewNote"
app:borderWidth="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:tint="@color/colorWhite"
tools:ignore="ContentDescription" />
您可以尝试添加此属性:
app:elevation="0dp"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.