iOS中的键盘问题-codenameone
我有一张附加表格。这里有许多字段需要用户填写。有文本字段、选择器、文本区域等。当我关注表单顶部的文本字段时,键盘工作正常。我注意到键盘上的“完成”按钮位于键盘底部。但一旦表单底部的文本字段或文本区域聚焦,就会显示键盘顶部带有“完成”按钮的键盘。单击“完成”按钮后,表单顶部会出现空白,我认为高度键盘以前会占用空白 更新1:descriptionTextArea给出了问题iOS中的键盘问题-codenameone,codenameone,Codenameone,我有一张附加表格。这里有许多字段需要用户填写。有文本字段、选择器、文本区域等。当我关注表单顶部的文本字段时,键盘工作正常。我注意到键盘上的“完成”按钮位于键盘底部。但一旦表单底部的文本字段或文本区域聚焦,就会显示键盘顶部带有“完成”按钮的键盘。单击“完成”按钮后,表单顶部会出现空白,我认为高度键盘以前会占用空白 更新1:descriptionTextArea给出了问题 f.setLayout(new BoxLayout(BoxLayout.Y_AXIS)); Label eventImage
f.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
Label eventImage = new Label();
TextField eventNameTextField = new TextField();
Button uploadImg = new Button(theme.getImage("uploadImg.png"));
//uploadImg actionListener code is skipped here
Container eventNameContainer = new Container(new BorderLayout());
Label maxSizeLabel = new Label("Max size 1mb");
Container wrapUploadIconAndMsg = new Container(new BorderLayout());
wrapUploadIconAndMsg.add(BorderLayout.WEST, uploadImg);
wrapUploadIconAndMsg.add(BorderLayout.CENTER, maxSizeLabel);
eventNameContainer.add(BorderLayout.NORTH, (BoxLayout.encloseY(eventImage, wrapUploadIconAndMsg)));
eventNameContainer.add(BorderLayout.CENTER, (eventNameTextField));
Picker startDate = new Picker();
Picker startTime = new Picker();
Container startContainer = GridLayout.encloseIn(2, startDate, startTime);
Label timeIcon = new Label(iconEvent);
Container wrapStartContainer = BoxLayout.encloseX(FlowLayout.encloseCenter(timeIcon), (startContainer));
Label timeIconInvisible = new Label(iconEvent);
timeIconInvisible.setVisible(false);
Picker endDate = new Picker();
Picker endTime = new Picker();
Container endContainer = GridLayout.encloseIn(2, endDate, endTime);
Container wrapEndContainer = BoxLayout.encloseX((timeIconInvisible), FlowLayout.encloseCenterBottom(endContainer));
Label descriptionIcon = new Label();
descriptionIcon.setIcon(iconDescription);
TextArea descriptionTextArea = new TextArea();
descriptionTextArea.setRows(4);
descriptionTextArea.setMaxSize(240);
descriptionTextArea.setVerticalAlignment(Label.TOP);
Container descriptionContainer = new Container(new BorderLayout());
descriptionContainer.add(BorderLayout.WEST, descriptionIcon);
descriptionContainer.add(BorderLayout.CENTER, descriptionTextArea);
Container wrapEventContainer = BoxLayout.encloseY(eventNameContainer, wrapStartContainer, wrapEndContainer, descriptionContainer);
f.add(wrapEventContainer);
f.revalidate();
1) 初始格式:
2) 在键盘底部有“完成”按钮的键盘(在这里工作正常)-使用表单顶部的文本字段
3) 键盘顶部有“完成”按钮(触摸“完成”后出现问题)
4) 完成后的问题被按下。(白色空白区域)我认为它的高度等于键盘的高度
奇数。你能提供一些关于表单布局的详细信息以及如何复制这些信息吗?这不会发生在一个非常简单的测试用例中,所以你有任何特殊的布局、嵌套的容器、动画或其他东西吗?我们将尝试在测试用例中重现这一点,你能提出一个问题吗?奇怪。你能提供一些关于表单布局的详细信息以及如何复制这些信息吗?这不会发生在一个非常简单的测试用例中,所以你有任何特殊的布局、嵌套的容器、动画或其他东西吗?我们将尝试在测试用例中重现这一点,你能提出一个问题吗?