TableView中的Xamarin.Forms android条目工作不正常
我在tableView中有一个简单的条目 第一次按输入时,键盘会出现,但焦点会消失。 点击键盘没有任何作用。 仅当再次按下输入时,键盘才在输入中写入字母 EntryCell对我来说不够好,当我用EntryCell替换条目时,它也不起作用TableView中的Xamarin.Forms android条目工作不正常,xamarin.forms,Xamarin.forms,我在tableView中有一个简单的条目 第一次按输入时,键盘会出现,但焦点会消失。 点击键盘没有任何作用。 仅当再次按下输入时,键盘才在输入中写入字母 EntryCell对我来说不够好,当我用EntryCell替换条目时,它也不起作用 TableView tableView = new TableView(); tableView.Intent = TableIntent.Form; tableView.BackgroundColor = Col
TableView tableView = new TableView();
tableView.Intent = TableIntent.Form;
tableView.BackgroundColor = Color.Blue;
tableView.HasUnevenRows = true;
tableView.Root = new TableRoot()
{
new TableSection()
{
new ViewCell() { View = new Entry() { WidthRequest = 100, BackgroundColor = Color.Red} }
}
};
实际上,如果是这样的话,您应该将
ViewCell
(而不是条目)替换为EntryCell
。否则,条目似乎失去了焦点。您是否在示例代码中省略了一些事件asign、behavior或trigger?我也尝试了EntryCell,它也有同样的问题