取得View的大小

获得View的大小在onCreate()中mapView.post(new Runnable(){public void run() {// heightOfMapView map

获得View的大小

在onCreate()中

mapView.post(new Runnable(){public void run() {// heightOfMapView = mapView.getHeight();widthOfMapView = mapView.getWidth();System.out.println("heightOfMapView:" + heightOfMapView + "widthOfMapView:" + widthOfMapView);}});
?

?

?

?

?

?