[android] #3019 - optimise visible coordinatebounds
This commit is contained in:
@@ -56,7 +56,8 @@ public class VisibleCoordinateBoundsActivity extends AppCompatActivity {
|
||||
.setAction(android.R.string.ok, new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
mMapView.setVisibleCoordinateBounds(new CoordinateBounds(losAngeles, newYork), new RectF(200, 0, 200, 0), true);
|
||||
float margin = getResources().getDimension(R.dimen.coordinatebounds_margin);
|
||||
mMapView.setVisibleCoordinateBounds(new CoordinateBounds(losAngeles, newYork), new RectF(margin, 0, margin, 0), true);
|
||||
}
|
||||
}).show();
|
||||
}
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
<resources>
|
||||
<dimen name="fab_margin">16dp</dimen>
|
||||
<dimen name="attr_margin">10dp</dimen>
|
||||
<dimen name="coordinatebounds_margin">32dp</dimen>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user