[英]How to show dialog with searching list using LWUIT?
我需要在用户按下按钮时显示带有搜索列表的对话框。 如何使用LWUIT做到这一点?
看到这个链接 。 这里在Form
清楚地说明了如何执行此操作。 您必须在Dialog
上执行相同的操作。 单击按钮时显示Dialog
。 因此,您已经为此按钮添加了actionListener
。 看到这个样本,
Button button = new Button("Button");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
Dialog dialog = new Dialog();
// Do here for searching list. Refer that link.
dialog.show();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.