вы можете переопределить touchEvent
PictureScrollField pictureScrollField = new PictureScrollField(150, 100) {
protected boolean touchEvent(TouchEvent message) {
if (TouchEvent.CLICK == message.getEvent()) {
FieldChangeListener listener = getChangeListener();
if (null != listener)
listener.fieldChanged(this, 1);
return true;
}
return super.touchEvent(message);
}
};
, а затем добавьте FieldChangeListener:
pictureScrollField.setChangeListener(new FieldChangeListener() {
public void fieldChanged(Field field, int context) {
if (context == 1) {
Dialog.alert("click:" + ((PictureScrollField)field).getCurrentImageIndex());
}
}
});