Reputation: 1371
Just a beginner question about what is the equivalent to FrameLayout (Android) in Xamarin.Forms?
Upvotes: 5
Views: 3233
Reputation: 1196
FrameLayout is a control that is designed to contain a single child but can optionally have multiple children that are controlled with gravity or what works similar to zindex.
I don't think there is a direct map from xamarin.Forms to Framelayout.
if your just looking for a page level container for a single control there is:
If your looking for a Multiple Item Container the options are:
see:https://developer.xamarin.com/guides/cross-platform/xamarin-forms/controls/layouts/
However none of these support the Z-Index like ability of FrameLayout the best option at the moment is a Grid with a single element. The children will layout from back to front in the order they are in the Grids.Children stack.
Upvotes: 6