xamarin android,键盘滚动?

xamarin android ,Keyboard Scroll?

我的应用程序中有一个登录表单。如果Entry被输入,键盘打开。

但问题是,我无法滚动。所以我必须关闭键盘才能输入其他条目。这不好!

有人能帮我解决吗?

正如Gabe Sechan所说,你可以将它们添加到ScrollView,这样你就可以完全达到你想要的效果。

我给你写了一个例子,给你一个更清晰的参考。

这里是 xaml 代码:

<StackLayout>
    <StackLayout HeightRequest="150" Orientation="Vertical">
        <ScrollView>
            <StackLayout>
                <Entry Placeholder="mytest"></Entry>
                <Label Text="mytest"></Label>
                <Label Text="mytest"></Label>
                <Label Text="mytest"></Label>
                <Label Text="mytest"></Label>
                <Label Text="mytest"></Label>
                <Label Text="mytest"></Label>
                <Entry Placeholder="mytest"></Entry>
            </StackLayout>
        </ScrollView>
    </StackLayout>
</StackLayout>