Having a lot of problems making a simple scrollview and inside it have both absolutelayout and stacklayouts. The stacklayout works fine but the image/labels that are controlled by an absolutelayout does not get the correct size. (I gather the image and all the labels from my codepage).
This is my current code:
<AbsoluteLayout>
<ScrollView AbsoluteLayout.LayoutBounds="0.0, 0.0, 1, 1" AbsoluteLayout.LayoutFlags="All" >
<AbsoluteLayout>
<Image Aspect = "AspectFill" AbsoluteLayout.LayoutBounds="0.0, 0.0, 1, 0.5"
AbsoluteLayout.LayoutFlags="All" x:Name = "image" />
<Button BackgroundColor = "Red"
AbsoluteLayout.LayoutBounds="1.0, 0.45, 0.5, 0.15" />
<StackLayout AbsoluteLayout.LayoutBounds="0.0, 1.0, 1, 0.5" AbsoluteLayout.LayoutFlags="All" >
<Label x:Name = "title" />
<Label x:Name = "date" />
<Label x:Name = "text" />
</StackLayout>
<AbsoluteLayout>
</ScrollView>
<AbsoluteLayout>
With this current code the image does not take 0.5 of the screen in height. It is much longer. I have tried to add a HeightRequest ="700" on the AbsolueLayout and then the image positions itself correctly but then the scrollview does not work even when the label text is longer than the screen.