你可以用这个
View locationButton = ((View) mMapView.findViewById(Integer.parseInt("1")).getParent()).findViewById(Integer.parseInt("2"));RelativeLayout.LayoutParams rlp = (RelativeLayout.LayoutParams) locationButton.getLayoutParams();// position on right bottomrlp.addRule(RelativeLayout.ALIGN_PARENT_TOP, 0);rlp.addRule(RelativeLayout.ALIGN_PARENT_TOP, RelativeLayout.TRUE);rlp.setMargins(0, 180, 180, 0);


