more tabs
This commit is contained in:
parent
2f15cf1688
commit
8532f37a5a
1 changed files with 14 additions and 14 deletions
|
@ -111,7 +111,7 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio
|
||||||
}
|
}
|
||||||
|
|
||||||
private Dialog createDialog() {
|
private Dialog createDialog() {
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(mapActivity);
|
AlertDialog.Builder builder = new AlertDialog.Builder(mapActivity);
|
||||||
View lmain = mapActivity.getLayoutInflater().inflate(R.layout.plan_route_info, null);
|
View lmain = mapActivity.getLayoutInflater().inflate(R.layout.plan_route_info, null);
|
||||||
boolean addButtons = routingHelper.isRouteCalculated();
|
boolean addButtons = routingHelper.isRouteCalculated();
|
||||||
updateInfo(lmain);
|
updateInfo(lmain);
|
||||||
|
@ -129,20 +129,20 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio
|
||||||
textView.setVisibility(View.GONE);
|
textView.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
builder.setView(lmain);
|
builder.setView(lmain);
|
||||||
|
|
||||||
Dialog dialog = builder.create();
|
Dialog dialog = builder.create();
|
||||||
dialog.setCanceledOnTouchOutside(true);
|
dialog.setCanceledOnTouchOutside(true);
|
||||||
WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
|
WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
|
||||||
lp.copyFrom(dialog.getWindow().getAttributes());
|
lp.copyFrom(dialog.getWindow().getAttributes());
|
||||||
lp.width = WindowManager.LayoutParams.WRAP_CONTENT;
|
lp.width = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||||
lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
lp.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||||
lp.gravity = Gravity.BOTTOM;
|
lp.gravity = Gravity.BOTTOM;
|
||||||
lp.y = (int) (infoButton.getBottom() - infoButton.getTop() + scaleCoefficient * 5 + getExtraVerticalMargin());
|
lp.y = (int) (infoButton.getBottom() - infoButton.getTop() + scaleCoefficient * 5 + getExtraVerticalMargin());
|
||||||
dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
|
dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
|
||||||
dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
|
dialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
|
||||||
dialog.getWindow().setAttributes(lp);
|
dialog.getWindow().setAttributes(lp);
|
||||||
return dialog;
|
return dialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateInfo(final View parentView) {
|
private void updateInfo(final View parentView) {
|
||||||
|
|
Loading…
Reference in a new issue