Xamarin.Plugin.FAB icon indicating copy to clipboard operation
Xamarin.Plugin.FAB copied to clipboard

fabBtn.IsEnabled = false changes colors and not getting it back to original color.

Open orcundeniz opened this issue 7 years ago • 1 comments

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

orcundeniz avatar May 02 '17 22:05 orcundeniz

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();
        }
    }

diegolido avatar Aug 16 '17 19:08 diegolido