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 ?
Asked
Active
Viewed 1,621 times
1
-
You could try put the AbsoluteLayout inside a StackLayout, and then anything extending should allow you to scroll to it :) – Sasha Feb 19 '18 at 13:46
1 Answers
1
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.

VahidShir
- 2,066
- 2
- 17
- 27
-
-
-
ok it work now : I add this => `this.Content = new ScrollView { Content = rl };` before I just put `this.Content=rl` rl is my relative layout. And it work with Absolute layou so... Do you have an explanation or ... ? – Userlambda Feb 19 '18 at 15:26
-
That's because when it comes to scrolling, using a ScrollView component is pre-supposed and a must! – VahidShir Feb 19 '18 at 15:45