【发布时间】:2019-03-22 04:41:37
【问题描述】:
ContentPage 内部有ListView、Entry 和Button,如下所示:
<StackLayout Orientation="Vertical">
<ListView>
...
...
</ListView>
<StackLayout Orientation="Horizontal">
<Entry ... />
<Button ... />
</StackLayout>
</StackLayout>
当我关注Entry 时,键盘会与Entry 和Button 重叠。
我知道,有一个解决方案:将元素放在ScrollView 中,但是这个解决方案在ScrollView 中滚动ListView 会产生很大的问题。我应该怎么做才能让它正常工作?
【问题讨论】:
-
你想用这个实现什么?你能分享一下用户界面吗?
-
这里是截图imgur.com/hDGw97w
-
这个截图加了ScrollView,键盘没有与Entry和Button重叠,但是ListView滚动和ScrollView滚动冲突
-
将条目和按钮添加到 ListView.Footer 不是一种选择,因为它们在滚动时不应该移动并且它们的位置应该是绝对的。
标签: xaml xamarin.forms