Material-components-android: FAB changes appearance

Created on 20 Feb 2020  路  3Comments  路  Source: material-components/material-components-android

Description: FAB changes color and border
Screenshot_20200221-041624

Expected behavior: FAB should look like this
Screenshot_20200221-041347

Source code:
<com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/createVisitor" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="16dp" android:src="@drawable/ic_add_users" android:tint="@color/colorWhite" app:layout_anchor="@id/linear" app:layout_anchorGravity="end|bottom" />

Android API version: Android API 29

Material Library version: Material Android Library version 1.1.0

Device: OnePlus 3 and OnePlus 6t

bug

Most helpful comment

Please check out @ricknout 's migration guide.

All 3 comments

Use app:tint="@color/colorWhite", app prefix solve it.

It would be really nice to have a migration guide between versions 1.0.0 and 1.1.0...

Please check out @ricknout 's migration guide.

Was this page helpful?
0 / 5 - 0 ratings