我的workFlow是这样..。我已经采取了三个HoriZontalManager,一个用于举行BackgroundImage of the button和两个HoriZontalManager to hold the CustomButton,我正在添加主hfm,其中包含按钮和背景图像在顶部,然后我添加了列表在一个VerticalfieldManager,但我没有使按钮工作,焦点始终留在列表字段。现在,当单击Button时,焦点总是驻留在列表字段的第一行,所以它总是向我展示选择器,实际上我已经在list字段的第一行上实现了它。我该怎么解决呢..。感谢高级..。
请帮帮忙。
发布于 2011-10-13 03:48:19
我已经解决了这个问题。我必须检查,如果焦点在按钮上,那么做我的工作,否则列表字段将被调用,它解决了这个问题。它不仅适用于touchScreen模拟器,也适用于触控板设备。
protected boolean navigationClick(int status, int time) {
// if the row select do something with it
// for first row which is time
if(backCustomButton.isFocus()) {
UiApplication.getUiApplication().pushScreen(new saveScreen());
}else if (saveCustomButton.isFocus()) {
Dialog.inform("Save Button on focus");
}else
if (_list.getSelectedIndex() == 0){
// Do the ListSpecific things
}https://stackoverflow.com/questions/7712630
复制相似问题