private static void SetColors(ExtendedSwitch entry, Android.Widget.Switch control)
        {
            var track = (StateListDrawable)control.TrackDrawable;

            track.SetColorFilter(entry.TrackColor.ToAndroid(), PorterDuff.Mode.Multiply);

            //lollipop
            if (control.ThumbDrawable is AnimatedStateListDrawable)
            {
                var thumb = (AnimatedStateListDrawable)control.ThumbDrawable;
            }
            else
            {
                var thumb = new StateListDrawable();
                thumb.AddState(
                    new[] { Android.Resource.Attribute.StateChecked },
                    new ColorDrawable(entry.OnColor.ToAndroid()));
                thumb.AddState(
                    new[] { -Android.Resource.Attribute.StateEnabled },
                    new ColorDrawable(entry.DisabledColor.ToAndroid()));
                thumb.AddState(
                    new int[0],
                    new ColorDrawable(entry.OffColor.ToAndroid()));

                control.ThumbDrawable = thumb;
            }
        }
 private static void SetOnText(ExtendedSwitch entry, Android.Widget.Switch control)
 {
     control.TextOn = entry.OnText;
 }