Xamarin.Plugin.FAB
Xamarin.Plugin.FAB copied to clipboard
fabBtn.IsEnabled = false changes colors and not getting it back to original color.
fabBtn.IsEnabled = false changes colors and not getting it back to original color by fabBtn.IsEnabled = true or fabBtn.NormalColor = color and fabBtn.RippleColor = color
Change the method UpdateEnabled inside FloatingActionButtonRenderer.cs to this one: private void UpdateEnabled() { this.Control.Enabled = this.Element.IsEnabled;
if (this.Control.Enabled == false)
{
this.Control.BackgroundTintList = ColorStateList.ValueOf(this.Element.DisabledColor.ToAndroid());
}
else
{
this.Control.BackgroundTintList = ColorStateList.ValueOf(this.Element.NormalColor.ToAndroid());
this.UpdateBackgroundColor();
}
}