答案 0 :(得分:0)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
mParamsAddButton.setMargins(mMapView.getWidth() - mAddFab.getWidth()/2, mMapView.getHeight()*3/4, 0, 0);
} else {
mParamsAddButton.setMargins(mMapView.getWidth() - mAddFab.getWidth()/2, mMapView.getHeight()/2, 0, 0);
}