MapField与其他屏幕重叠

时间:2013-03-05 10:04:20

标签: blackberry blackberry-simulator blackberry-jde

images = _appData.getImageAccoToScr("StoreLocaterMapView");
//Add Title Bar to Screen
addTitle();
// initializing the Map component
mMapField =  new CustomMapField(BLANK, null, _appData, getGraphics(), hFM);
// Adding button to toggle to store list view
addToggleButton();
/*// initializing the Map component
mMapField = new CustomMapField(BLANK, null, _appData, getGraphics(), hFM);    */

// Manager to add the components
_contentOne = new VerticalFieldManager(Color.WHITE | NO_HORIZONTAL_SCROLL | NO_VERTICAL_SCROLL | NON_FOCUSABLE);

// adding pins related to stores to map view
addPinsToMap();

//Add WaitingPopUp to screen
addPopup();


// adding manager to screen
_contentOne.add(mMapField);
add(_contentOne);

以下是添加地图和一个地平线管理员的主要代码。当我滚动地图字段时,它与经理重叠。

1 个答案:

答案 0 :(得分:0)

您是否尝试将该地图添加到经理?

mainmanager.add(你的hrizontal经理) mainmanager.add(包含地图的经理)

加(mainmanager)