_bgImage = new ImageView(context)
{
- LayoutParameters = new LP(coordinator.LayoutParameters),
- Elevation = float.NegativeInfinity
+ LayoutParameters = new LP(coordinator.LayoutParameters)
};
UpdateFlyoutHeaderBehavior();
}
if (_rootView.IndexOfChild(_bgImage) == -1)
- _rootView.AddView(_bgImage);
+ {
+ if(_bgImage.SetElevation(float.MinValue))
+ _rootView.AddView(_bgImage);
+ else
+ _rootView.AddView(_bgImage, 0);
+ }
}
}
view.ClipToOutline = value;
}
+
+ public static bool SetElevation(this AView view, float value)
+ {
+ if (view.IsDisposed() || !Forms.IsLollipopOrNewer)
+ return false;
+
+ view.Elevation = value;
+ return true;
+ }
}
}
\ No newline at end of file