xaml - 按钮在较低分辨率下转义堆栈布局
问题描述
这是问题的屏幕截图(左 = Xamarin.Forms 预览器;右 = ADV 768x1080)
代码:
<Frame BackgroundColor="#292929" VerticalOptions="CenterAndExpand" Margin="20,0,20,0" CornerRadius="4" Padding="0">
<StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Padding="5">
<StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Tomato">
<Label FontSize="Small" Text="ABBONAMENTO 30 giorni" TextColor="White"/>
<Label FontSize="Small" Text="€10,99" HorizontalOptions="EndAndExpand" TextColor="#ff9900"/>
</StackLayout>
<Button HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Text="ISCRIVITI" TextColor="#eeeeee" BackgroundColor="#FF9900" CornerRadius="4"/>
</StackLayout>
</Frame>
框架放在一个StackLayout
中,其父级是一个网格。
该问题仅在低分辨率设备上仍然存在。你能告诉我为什么会发生这种情况,以及如何解决它吗?
我需要这种布局具有高度感知和响应能力。
解决方案
推荐阅读
- javascript - 将错误消息分配给 req.session.error 的目的是什么?
- angular - NGRX 效果抛出错误类型 XXXX 不可分配给类型 'ObservableInput
' - node.js - 将 Reactjs 连接到 Myqtthub
- python - Scrapy 无法抓取下一页
- excel - Excel:四舍五入最近的值
- r - 在 dfm 非英语标记中查找并删除它们
- regex - 当文件可以包含带有换行符的数据或不带有换行符的数据时预览 csv 数据
- html - 我怎样才能定位这样的图像?
- sql - 具有多个 SELECT 语句的案例
- pandas - df.ix 不工作,什么是正确的 iloc 方法?