读书人

取得View的大小

发布时间: 2012-06-28 15:20:03 作者: rapoo

获得View的大小

在onCreate()中

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

?

?

?

?

?

读书人网 >移动开发

热点推荐