簡體   English   中英

Xamarin形式:滾動視圖,底部xaml上固定有按鈕

[英]Xamarin Forms: scrollview with button fixed on bottom xaml

我是xamarin表單和xaml的新手,我想嘗試在xaml中重現此布局 YPlan應用

帶有圖像的可滾動視圖,然后是描述和固定在底部的按鈕(不隨視圖滾動)

如何以xamarin形式實現此布局? 我必須使用StackLayout還是Grid?

謝謝

這應該做。 堆棧布局,其中包含可滾動內容的滾動視圖,然后是水平堆棧布局內位於其下方的兩個按鈕。

<stacklayout>

     <scrollview>
     </scrollview>

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

</stacklayout>

我認為StackLayout是一個不錯的選擇。 您應該擁有一個包含ScrollView(包含用於圖像和標簽的StackLayout)的StackLayout,以及用於“共享”和“獲取票證”按鈕(或這些按鈕的網格)的StackLayout(方向=水平)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM