简体   繁体   中英

Xamarin Forms: scrollview with button fixed on bottom xaml

I'm new to xamarin forms and xaml and i want try to reproduce this layout in xaml YPlan应用

A scrollable view with an image, then a description and, fixed on bottom, a button (that not scroll with the view)

How can i achieve this layout in xamarin forms? I must use StackLayout or Grid?

Thanks

This should do it. A stack layout, which contains a scrollview for your scrollable content, then your two buttons under it inside of a horizontal stacklayout.

<stacklayout>

     <scrollview>
     </scrollview>

     <stacklayout orientation=horizontal>
            <share button>   <get tickets button>
     </stacklayout>

</stacklayout>

I think a StackLayout it's a good choice. You should have a StackLayout that contains a ScrollView (that contains a StackLayout for Image and Labels) and the StackLayout (Orientation = Horizontal) for "Share" and "Get tickets" buttons (or a Grid for these buttons....)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM