【问题标题】:xamarin forms page not scrolledxamarin 表单页面未滚动
【发布时间】:2017-06-03 07:04:13
【问题描述】:

我是 xamarin 表单的初学者,我已下载 Todo project。 我的主要问题是视图页面显示不正确,我不知道到底是什么问题。 这是我的代码:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="Todo.TodoItemPage" x:Name="page" Title="Todo Item">
<StackLayout Margin="20" VerticalOptions="StartAndExpand">
    <Label Text="Name" />
    <Entry Text="{Binding Source={x:Reference page}, Path=TodoItem.Name}" Placeholder="Enter task name here" />
    <ActivityIndicator HorizontalOptions="Center" IsRunning="{Binding Source={x:Reference page}, Path=IsProcessing}" />
    <Label Text="Done" />
    <Switch IsToggled="{Binding Source={x:Reference page}, Path=TodoItem.Done}" />
    <Button Text="Save" Clicked="OnSaveClicked" />
    <Button Text="Delete" Clicked="OnDeleteClicked" />
    <Button Text="Cancel" Clicked="OnCancelClicked" />
</StackLayout>

这是此页面的屏幕截图。如您所见,DeleteCancel 按钮没有出现,我无法在此页面中滚动。

我想我的 AVD 可能有问题。加载 AVD 时,您可以看到下面的屏幕截图。

.

您也可以在下图中看到 AVD 设置

如果问题仅出在 AVD 中,为什么我无法在页面中滚动。如果我在小屏幕的真实设备上运行这个应用程序,它看起来像这样?

主要问题是什么以及如何解决?

【问题讨论】:

    标签: android xamarin.forms avd


    【解决方案1】:

    我认为您可以将 Layout 添加到 ScrollView 以便您可以滚动它。

    【讨论】:

      猜你喜欢
      • 2015-02-02
      • 2018-03-25
      • 1970-01-01
      • 1970-01-01
      • 2016-06-01
      • 2016-09-12
      • 2016-11-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多