2017-07-28 16:39:32 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-08-11 13:35:24 +02:00
|
|
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
2017-07-28 16:39:32 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@color/color_transparent"
|
|
|
|
android:clickable="true">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/main_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:background="@drawable/bg_bottom_menu_dark"
|
|
|
|
android:clickable="true"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
2017-08-08 12:33:41 +02:00
|
|
|
android:id="@+id/up_down_row"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-09 10:08:12 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
2017-07-31 17:13:29 +02:00
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:paddingTop="12dp">
|
2017-07-28 16:39:32 +02:00
|
|
|
|
2017-08-02 11:23:27 +02:00
|
|
|
<ImageView
|
2017-07-28 16:39:32 +02:00
|
|
|
android:id="@+id/ruler_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
2017-07-31 17:13:29 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:background="@null"
|
|
|
|
tools:src="@drawable/ic_action_ruler"/>
|
|
|
|
|
2017-08-09 17:34:34 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/move_point_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:background="@null"
|
2017-08-11 13:35:24 +02:00
|
|
|
android:visibility="gone"
|
2017-08-14 17:55:09 +02:00
|
|
|
tools:src="@drawable/ic_action_move_point"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/add_point_after_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:background="@null"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_action_addpoint_above"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/add_point_before_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:background="@null"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_action_addpoint_below"/>
|
2017-08-09 17:34:34 +02:00
|
|
|
|
2017-08-08 12:33:41 +02:00
|
|
|
<ImageView
|
2017-08-02 11:23:27 +02:00
|
|
|
android:id="@+id/up_down_button"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
2017-08-08 12:33:41 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:background="@null"
|
|
|
|
tools:src="@drawable/ic_action_arrow_down"/>
|
|
|
|
|
|
|
|
<TextView
|
2017-08-01 12:15:11 +02:00
|
|
|
android:id="@+id/measurement_distance_text_view"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
2017-08-01 12:15:11 +02:00
|
|
|
android:layout_marginEnd="4dp"
|
2017-07-31 17:13:29 +02:00
|
|
|
android:layout_marginLeft="8dp"
|
2017-08-01 12:15:11 +02:00
|
|
|
android:layout_marginRight="4dp"
|
2017-07-31 17:13:29 +02:00
|
|
|
android:layout_marginStart="8dp"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:layout_toEndOf="@id/ruler_icon"
|
|
|
|
android:layout_toRightOf="@id/ruler_icon"
|
|
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
2017-08-01 12:15:11 +02:00
|
|
|
tools:text="724 m,"/>
|
2017-07-28 16:39:32 +02:00
|
|
|
|
|
|
|
<TextView
|
2017-08-01 12:15:11 +02:00
|
|
|
android:id="@+id/measurement_points_text_view"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
2017-08-01 12:15:11 +02:00
|
|
|
android:layout_toEndOf="@id/measurement_distance_text_view"
|
2017-08-02 11:23:27 +02:00
|
|
|
android:layout_toLeftOf="@id/up_down_button"
|
2017-08-01 12:15:11 +02:00
|
|
|
android:layout_toRightOf="@id/measurement_distance_text_view"
|
2017-08-02 11:23:27 +02:00
|
|
|
android:layout_toStartOf="@id/up_down_button"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:textColor="?android:textColorSecondary"
|
2017-07-31 17:13:29 +02:00
|
|
|
android:textSize="@dimen/default_list_text_size"
|
2017-08-01 12:15:11 +02:00
|
|
|
tools:text="points: 3"/>
|
2017-08-09 17:34:34 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/move_point_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_toEndOf="@id/move_point_icon"
|
|
|
|
android:layout_toRightOf="@id/move_point_icon"
|
|
|
|
android:text="@string/move_point"
|
2017-08-11 13:35:24 +02:00
|
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
2017-08-09 17:34:34 +02:00
|
|
|
android:visibility="gone"/>
|
2017-08-14 17:55:09 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/add_point_after_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_toEndOf="@id/add_point_after_icon"
|
|
|
|
android:layout_toRightOf="@id/add_point_after_icon"
|
|
|
|
android:text="@string/add_point_after"
|
|
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/add_point_before_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="4dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_toEndOf="@id/add_point_before_icon"
|
|
|
|
android:layout_toRightOf="@id/add_point_before_icon"
|
|
|
|
android:text="@string/add_point_before"
|
|
|
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
|
|
|
android:visibility="gone"/>
|
2017-07-28 16:39:32 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
|
2017-08-07 13:59:18 +02:00
|
|
|
<FrameLayout
|
2017-08-03 17:59:55 +02:00
|
|
|
android:id="@+id/points_list_container"
|
|
|
|
android:layout_width="match_parent"
|
2017-08-07 17:39:13 +02:00
|
|
|
android:layout_height="220dp"
|
2017-08-03 17:59:55 +02:00
|
|
|
android:background="@color/ctx_menu_info_view_bg_dark"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
2017-08-08 11:49:47 +02:00
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
android:id="@+id/measure_points_recycler_view"
|
2017-08-03 17:59:55 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-07 13:59:18 +02:00
|
|
|
android:layout_height="match_parent"/>
|
2017-08-03 17:59:55 +02:00
|
|
|
|
2017-08-09 14:34:00 +02:00
|
|
|
<include layout="@layout/card_bottom_divider"/>
|
|
|
|
|
2017-08-03 17:59:55 +02:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
2017-08-07 13:59:18 +02:00
|
|
|
android:layout_height="5dp"
|
|
|
|
android:layout_gravity="bottom"
|
2017-08-07 17:07:46 +02:00
|
|
|
android:alpha="0.5"
|
2017-08-03 17:59:55 +02:00
|
|
|
android:scaleType="fitXY"
|
|
|
|
android:src="@drawable/bg_shadow_onmap"/>
|
2017-08-07 13:59:18 +02:00
|
|
|
</FrameLayout>
|
2017-08-03 17:59:55 +02:00
|
|
|
|
2017-08-11 16:35:36 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/measure_mode_controls"
|
2017-07-28 16:39:32 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-09 17:34:34 +02:00
|
|
|
android:layout_height="52dp">
|
2017-07-28 16:39:32 +02:00
|
|
|
|
2017-08-11 16:35:36 +02:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="0dp"
|
2017-08-11 13:35:24 +02:00
|
|
|
android:layout_height="match_parent"
|
2017-08-11 16:35:36 +02:00
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
|
|
android:id="@+id/options_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
2017-08-16 13:16:40 +02:00
|
|
|
android:ellipsize="end"
|
2017-08-11 16:35:36 +02:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:text="@string/shared_string_options"
|
|
|
|
android:textColor="?attr/color_dialog_buttons"
|
|
|
|
osmand:textAllCapsCompat="true"
|
|
|
|
osmand:typeface="@string/font_roboto_medium"/>
|
|
|
|
</FrameLayout>
|
2017-07-28 16:39:32 +02:00
|
|
|
|
2017-08-15 12:40:29 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/undo_point_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:paddingBottom="14dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="14dp"
|
|
|
|
tools:src="@drawable/ic_action_undo_dark"/>
|
2017-08-11 13:35:24 +02:00
|
|
|
|
2017-08-15 12:40:29 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/redo_point_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:paddingBottom="14dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingTop="14dp"
|
|
|
|
tools:src="@drawable/ic_action_redo_dark"/>
|
2017-07-28 16:39:32 +02:00
|
|
|
|
2017-08-11 16:35:36 +02:00
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/add_point_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:background="@drawable/btn_round_blue"
|
|
|
|
android:drawableLeft="@drawable/ic_action_plus"
|
2017-08-16 13:16:40 +02:00
|
|
|
android:ellipsize="end"
|
2017-08-11 16:35:36 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
android:minHeight="36dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
android:text="@string/shared_string_add"
|
|
|
|
android:textColor="@color/color_white"/>
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
2017-08-14 17:55:09 +02:00
|
|
|
android:id="@+id/selected_point_controls"
|
2017-08-11 16:35:36 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="52dp"
|
|
|
|
android:visibility="gone">
|
2017-08-09 17:34:34 +02:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/apply_point_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:background="@drawable/btn_round_blue"
|
|
|
|
android:minHeight="36dp"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
android:text="@string/shared_string_apply"
|
2017-08-11 16:35:36 +02:00
|
|
|
android:textColor="@color/color_white"/>
|
2017-08-09 17:34:34 +02:00
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
2017-08-10 00:59:50 +02:00
|
|
|
android:id="@+id/cancel_point_button"
|
2017-08-09 17:34:34 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
2017-08-11 13:35:24 +02:00
|
|
|
android:gravity="center_vertical"
|
2017-08-09 17:34:34 +02:00
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:text="@string/shared_string_cancel"
|
|
|
|
android:textColor="?attr/color_dialog_buttons"
|
|
|
|
osmand:textAllCapsCompat="true"
|
2017-08-11 13:35:24 +02:00
|
|
|
osmand:typeface="@string/font_roboto_medium"/>
|
2017-07-28 16:39:32 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|