开通VIP,畅享免费电子书等14项超值服
首页
好书
留言交流
下载APP
联系客服
2011.08.02
ERROR/AndroidRuntime(1032): java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
but.setBackgroundResource(R.drawable.home);
but.setLayoutParams(new MapView.LayoutParams(25, 25, gp, 1));
mapView.removeAllViews();//addView之前必须调用该函数,否则会出错
mapView.addView(but);
微信登录中...请勿关闭此页面