Touch4j 2.1 发布,该版本修复了一些 bug ,在性能上有着不少提升,同时升级到 Sencha Touch 2.0.1。
现在你可以通过代码:
Panel p = new Panel(new FitLayout());
ToolBar toolBar = new ToolBar();
toolBar.add(new Button("Click Me", UI.CONFIRM, new TapHandler() {
@Override
public void onTap(Button button, EventObject event) {
Panel myPanel = new Panel();
myPanel.setHtml("Hello World");
myPanel.setSize(300, 300);
myPanel.setModal(true);
myPanel.setHideOnMaskTap(true);
myPanel.showBy(button);
}
}));
p.add(toolBar);
ViewPort.get().add(p);
来实现如下图的效果:

支持 Google 地图:

等等,详情请看发行说明。
支持 PhoneGap 1.7 版本,提供新的更强大的 UI 组件:

