Userlambda
Userlambda

Reputation: 85

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 ?

Upvotes: 1

Views: 1765

Answers (1)

VahidShir
VahidShir

Reputation: 2106

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.

Upvotes: 1

Related Questions