You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the FloatingActionButton is displaying perfectly fine in my app but I'm seeing the following message in Logcat...
I/FloatingActionButton: Setting a custom background is not supported.
... I'm not setting a background on the FloatingActionButton anywhere in my app.
Is it something I've done incorrectly in setting up the FloatingActionButton to trigger this message or is it a bug?
The text was updated successfully, but these errors were encountered:
adil-hussain-84
changed the title
FloatingActionButton: Setting a custom background is not supported
FloatingActionButton warning in logcat: Setting a custom background is not supported
Feb 15, 2019
Hi good catch, this is because we are setting a background in Widget.Design.FloatingActionButton.
you can add android:background="@null" to your fab or safely ignore this warning. I'll see if we can set that in the default style.
I'm using the latest version of the
com.google.android.material:material
library (i.e.1.1.0-alpha03
) and I have an app theme defined as follows...... and a
FloatingActionButton
defined as follows...... the
FloatingActionButton
is displaying perfectly fine in my app but I'm seeing the following message in Logcat...... I'm not setting a background on the
FloatingActionButton
anywhere in my app.Is it something I've done incorrectly in setting up the
FloatingActionButton
to trigger this message or is it a bug?The text was updated successfully, but these errors were encountered: