xamarinxamarin.formsabsolutelayout

Position absolute in Xamarin.Forms


I want to place my Views dynamically on my App, so I used Absolute Layout from Xamarin.Forms. The problem is that when I set a Y position too big it doesn't behave like I want. I want to scrool when the element is off screen but it doesn't work. Do I have to add something or it's impossible with Absolute Layout ?


Solution

  • Instead of an AbsoluteLayout, you need to use RelativeLayout, because:

    AbsoluteLayout:

    Elements cannot be positioned off screen using proportional values.

    RelativeLayout:

    RelativeLayout does support positioning elements outside of its own bounds.