I want to have a FloatingActionButton with a semi transparent color.
However, when I set the backgroundTint attribute of the FloatingActionButton with a alpha color not equal to 0xFF, the color in the center of the FAB looks good but there is a weird hexagonal shape with a distinct color on the outer side.
My layout file:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#03A9F4"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="#FF03DAC5"
android:src="@drawable/icon"
app:fabCustomSize="90dp"
app:maxImageSize="40dp"
/>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="#8003DAC5"
android:src="@drawable/icon"
app:fabCustomSize="90dp"
app:maxImageSize="40dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#8003DAC5"
android:gravity="center"
android:text="#8003DAC5" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#03DAC5"
android:gravity="center"
android:text="#03DAC5" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
What can I to to fix that?