I\'m creating an Android app and I\'m using the AndroidX libraries and Material design theme. My app theme on styles.xml
is:
colorSecondary
is the responsible color forFloatingActionButton
. andcolorOnSecondary
is the responsible color for icon color ofFloatingActionButton
.
In your AppTheme
you have not defied the colorSecondary
. So, it took the default black color from parent Theme.MaterialComponents.Light.DarkActionBar
.
Reference : Android dev summit, 2018 - The Components of Material Design