I\'m creating an Android app and I\'m using the AndroidX libraries and Material design theme. My app theme on styles.xml is:
colorSecondaryis the responsible color forFloatingActionButton. andcolorOnSecondaryis 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