Delivered dialog width fill_parent

This commit is contained in:
unknown 2014-06-30 12:47:50 +03:00
parent 82d1801a2f
commit 121b9cd9e9
2 changed files with 3 additions and 9 deletions

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:background="@color/color_black">
<TextView android:layout_width="wrap_content"
@ -10,10 +10,6 @@
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="@string/package_delivered"/>
<LinearLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="center_horizontal">
<Button android:id="@+id/delivered_yes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -26,6 +22,4 @@
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:text="@string/default_buttons_no"/>
</LinearLayout>
</LinearLayout>

View file

@ -101,7 +101,7 @@ public class RoutePointsPlugin extends OsmandPlugin {
public boolean destinationReached() {
if (currentRoute != null) {
FrameLayout layout = (FrameLayout) mapActivity.getLayout();
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT);
params.gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
layout.addView(deliveredView, params);
}