1). First of all, using this code
protected void layout(int width, int height) {
setExtent(width, height);
}
. , BB UI / layout(int width, int height), . (360 ), - VerticalFieldManager (, , ) ( 1073741823 px). , Bitmap, , , " " ( Storm 9530).
, layout() , :
protected void layout(int width, int height) {
setExtent(Math.min(width, 360), Math.min(height, 480));
}
2).
, touchEvent
, . , ( ). ( TouchEvent.DOWN > TouchEvent.CLICK > TouchEvent.UNCLICK > TouchEvent.UP), ( TouchEvent.DOWN > TouchEvent.UP).
3).
, " ", .
, TouchEvent.UNCLICK. , :
protected boolean touchEvent(TouchEvent message) {
return true;
}
. , . TouchEvent.UNCLICK , BB UI getContextMenu(int instance) makeContextMenu(ContextMenu contextMenu, int instance) . , ( ContextMenu, getContextMenu(int instance), getContextMenu(int instance) smt, :
public ContextMenu getContextMenu(int instance) {
boolean isContextMenu = (Menu.INSTANCE_CONTEXT == instance);
return isContextMenu ? null : super.getContextMenu(instance);
}
4). , / touchEvent(TouchEvent message). / , ( ). , , . . , touchEvent(TouchEvent message), - . ( ButtonField), navigationClick(int status, int time) navigationUnclick(int status, int time). BB UI , .