Resolve conflicts
This commit is contained in:
commit
1f593c9726
56 changed files with 1256 additions and 376 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:drawable="@drawable/marker_circle_background_dark_n"
|
android:drawable="@drawable/marker_circle_background_dark_n"
|
||||||
android:insetBottom="14dp"
|
android:insetBottom="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetLeft="14dp"
|
android:insetLeft="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetRight="14dp"
|
android:insetRight="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetTop="14dp"/>
|
android:insetTop="@dimen/context_menu_first_line_top_margin"/>
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:drawable="@drawable/marker_circle_background_light_n"
|
android:drawable="@drawable/marker_circle_background_light_n"
|
||||||
android:insetBottom="14dp"
|
android:insetBottom="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetLeft="14dp"
|
android:insetLeft="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetRight="14dp"
|
android:insetRight="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetTop="14dp"/>
|
android:insetTop="@dimen/context_menu_first_line_top_margin"/>
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:drawable="@drawable/marker_circle_background_on_map_n"
|
android:drawable="@drawable/marker_circle_background_on_map_n"
|
||||||
android:insetBottom="14dp"
|
android:insetBottom="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetLeft="14dp"
|
android:insetLeft="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetRight="14dp"
|
android:insetRight="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetTop="14dp"/>
|
android:insetTop="@dimen/context_menu_first_line_top_margin"/>
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:drawable="@drawable/marker_circle_background_p"
|
android:drawable="@drawable/marker_circle_background_p"
|
||||||
android:insetBottom="14dp"
|
android:insetBottom="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetLeft="14dp"
|
android:insetLeft="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetRight="14dp"
|
android:insetRight="@dimen/context_menu_first_line_top_margin"
|
||||||
android:insetTop="14dp">
|
android:insetTop="@dimen/context_menu_first_line_top_margin">
|
||||||
|
|
||||||
</inset>
|
</inset>
|
47
OsmAnd/res/layout-land/fragment_marker_menu_on_map.xml
Normal file
47
OsmAnd/res/layout-land/fragment_marker_menu_on_map.xml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/color_transparent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="@dimen/dashboard_land_width"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="?attr/left_menu_view_bg"
|
||||||
|
android:clickable="true"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<include layout="@layout/marker_menu_on_map_content"/>
|
||||||
|
|
||||||
|
<Space
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/back_row"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_cancel_button_height"
|
||||||
|
android:background="?attr/selectableItemBackground">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:text="@string/shared_string_back"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textColor="?attr/color_dialog_buttons"
|
||||||
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</FrameLayout>
|
|
@ -70,9 +70,9 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_toEndOf="@id/main_icon"
|
android:layout_toEndOf="@id/main_icon"
|
||||||
android:layout_toRightOf="@id/main_icon"
|
android:layout_toRightOf="@id/main_icon"
|
||||||
|
@ -108,9 +108,9 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_toEndOf="@id/main_icon"
|
android:layout_toEndOf="@id/main_icon"
|
||||||
android:layout_toRightOf="@id/main_icon"
|
android:layout_toRightOf="@id/main_icon"
|
||||||
|
@ -123,9 +123,9 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_toEndOf="@id/main_icon"
|
android:layout_toEndOf="@id/main_icon"
|
||||||
android:layout_toRightOf="@id/main_icon"
|
android:layout_toRightOf="@id/main_icon"
|
||||||
|
|
|
@ -47,8 +47,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
|
@ -86,8 +86,8 @@
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="@dimen/list_content_padding"
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="@dimen/list_content_padding"
|
||||||
android:text="@string/shared_string_options"
|
android:text="@string/shared_string_options"
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:textColor="?attr/color_dialog_buttons"
|
android:textColor="?attr/color_dialog_buttons"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:padding="@dimen/bottom_sheet_content_padding">
|
android:padding="@dimen/content_padding">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/show_hide_keyboard_icon"
|
android:id="@+id/show_hide_keyboard_icon"
|
||||||
android:padding="@dimen/bottom_sheet_content_padding"
|
android:padding="@dimen/content_padding"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|
|
@ -45,8 +45,8 @@
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:text="@string/shared_string_options"
|
android:text="@string/shared_string_options"
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:textColor="@color/color_white"
|
android:textColor="@color/color_white"
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="5dp"
|
android:layout_height="@dimen/shadow_height"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:alpha="0.5"
|
android:alpha="0.5"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/fast_coordinates_input"
|
android:text="@string/fast_coordinates_input"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -34,10 +34,10 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_descr_height"
|
android:layout_height="@dimen/bottom_sheet_descr_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/fast_coordinates_input_descr"
|
android:text="@string/fast_coordinates_input_descr"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
android:textSize="@dimen/default_desc_text_size"/>
|
android:textSize="@dimen/default_desc_text_size"/>
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/shared_string_options"
|
android:text="@string/shared_string_options"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:descendantFocusability="blocksDescendants"
|
android:descendantFocusability="blocksDescendants"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding">
|
android:paddingRight="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
@ -83,8 +83,8 @@
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:paddingTop="@dimen/bottom_sheet_content_padding_small"
|
android:paddingTop="@dimen/bottom_sheet_content_padding_small"
|
||||||
android:paddingBottom="@dimen/bottom_sheet_content_padding_small"
|
android:paddingBottom="@dimen/bottom_sheet_content_padding_small"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/coordinates_format"/>
|
android:text="@string/coordinates_format"/>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="8dp">
|
android:paddingBottom="@dimen/bottom_sheet_content_padding_small">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -25,10 +25,10 @@
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_selected_item_title_height"
|
android:minHeight="@dimen/bottom_sheet_selected_item_title_height"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/map_marker_icon"
|
android:id="@+id/map_marker_icon"
|
||||||
|
@ -82,10 +82,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/make_active_icon"
|
android:id="@+id/make_active_icon"
|
||||||
|
@ -110,10 +110,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/delete_icon"
|
android:id="@+id/delete_icon"
|
||||||
|
|
43
OsmAnd/res/layout/fragment_marker_menu_on_map.xml
Normal file
43
OsmAnd/res/layout/fragment_marker_menu_on_map.xml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<FrameLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/color_transparent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="bottom"
|
||||||
|
android:background="?attr/bottom_menu_view_bg"
|
||||||
|
android:clickable="true"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<include layout="@layout/marker_menu_on_map_content"/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:id="@+id/back_row"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_cancel_button_height"
|
||||||
|
android:background="?attr/selectableItemBackground">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:text="@string/shared_string_back"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textColor="?attr/color_dialog_buttons"
|
||||||
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</FrameLayout>
|
|
@ -17,16 +17,16 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="8dp">
|
android:paddingBottom="@dimen/bottom_sheet_content_padding_small">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/shared_string_options"
|
android:text="@string/shared_string_options"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -37,15 +37,15 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/sort_by_icon"
|
android:id="@+id/sort_by_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/standard_icon_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/standard_icon_size"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
@ -66,15 +66,15 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/show_direction_icon"
|
android:id="@+id/show_direction_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/standard_icon_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/standard_icon_size"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
@ -105,10 +105,10 @@
|
||||||
<View
|
<View
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginBottom="@dimen/measurement_tool_bottom_divider_margin_bottom"
|
android:layout_marginBottom="@dimen/bottom_sheet_divider_margin_bottom"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginLeft="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginStart="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginTop="@dimen/measurement_tool_bottom_divider_margin_top"
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
android:background="?attr/dashboard_divider"/>
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -118,15 +118,15 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/coordinate_input_icon"
|
android:id="@+id/coordinate_input_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/standard_icon_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/standard_icon_size"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
@ -147,15 +147,15 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/build_route_icon"
|
android:id="@+id/build_route_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/standard_icon_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/standard_icon_size"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
@ -176,15 +176,15 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/save_as_new_track_icon"
|
android:id="@+id/save_as_new_track_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="@dimen/standard_icon_size"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/standard_icon_size"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
@ -203,10 +203,10 @@
|
||||||
android:id="@+id/move_all_to_history_divider"
|
android:id="@+id/move_all_to_history_divider"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginBottom="@dimen/measurement_tool_bottom_divider_margin_bottom"
|
android:layout_marginBottom="@dimen/bottom_sheet_divider_margin_bottom"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginLeft="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginStart="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginTop="@dimen/measurement_tool_bottom_divider_margin_top"
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
android:background="?attr/dashboard_divider"/>
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -215,15 +215,15 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/move_all_to_history_icon"
|
android:id="@+id/move_all_to_history_icon"
|
||||||
android:layout_width="24dp"
|
android:layout_width="@dimen/standard_icon_size"
|
||||||
android:layout_height="24dp"
|
android:layout_height="@dimen/standard_icon_size"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
tools:text="@string/order_by"
|
tools:text="@string/order_by"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -37,10 +37,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -66,10 +66,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -95,10 +95,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -124,10 +124,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:gravity="center_vertical">
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/marker_save_as_track"
|
android:text="@string/marker_save_as_track"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -34,10 +34,10 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_descr_height"
|
android:layout_height="@dimen/bottom_sheet_descr_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/marker_save_as_track_descr"
|
android:text="@string/marker_save_as_track_descr"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
android:textSize="@dimen/default_desc_text_size"/>
|
android:textSize="@dimen/default_desc_text_size"/>
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/show_direction"
|
android:text="@string/show_direction"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -34,10 +34,10 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_descr_height"
|
android:layout_height="@dimen/bottom_sheet_descr_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/marker_show_distance_descr"
|
android:text="@string/marker_show_distance_descr"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
android:textSize="@dimen/default_desc_text_size"/>
|
android:textSize="@dimen/default_desc_text_size"/>
|
||||||
|
@ -122,8 +122,8 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:descendantFocusability="blocksDescendants"
|
android:descendantFocusability="blocksDescendants"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding">
|
android:paddingRight="@dimen/content_padding">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -152,8 +152,8 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding">
|
android:paddingRight="@dimen/content_padding">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -194,10 +194,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/top_bar_icon"
|
android:id="@+id/top_bar_icon"
|
||||||
|
@ -243,10 +243,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:foreground="?attr/selectableItemBackground"
|
android:foreground="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/widget_icon"
|
android:id="@+id/widget_icon"
|
||||||
|
@ -292,10 +292,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:foreground="?attr/selectableItemBackground"
|
android:foreground="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/none_icon"
|
android:id="@+id/none_icon"
|
||||||
|
|
|
@ -65,9 +65,9 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_toEndOf="@id/main_icon"
|
android:layout_toEndOf="@id/main_icon"
|
||||||
android:layout_toRightOf="@id/main_icon"
|
android:layout_toRightOf="@id/main_icon"
|
||||||
|
@ -103,9 +103,9 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_toEndOf="@id/main_icon"
|
android:layout_toEndOf="@id/main_icon"
|
||||||
android:layout_toRightOf="@id/main_icon"
|
android:layout_toRightOf="@id/main_icon"
|
||||||
|
@ -118,9 +118,9 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
android:layout_marginLeft="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
android:layout_marginStart="@dimen/measurement_tool_text_margin"
|
||||||
android:layout_toEndOf="@id/main_icon"
|
android:layout_toEndOf="@id/main_icon"
|
||||||
android:layout_toRightOf="@id/main_icon"
|
android:layout_toRightOf="@id/main_icon"
|
||||||
|
|
|
@ -17,17 +17,17 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="8dp">
|
android:paddingBottom="@dimen/bottom_sheet_content_padding_small">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
android:id="@+id/options_title"
|
android:id="@+id/options_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/shared_string_options"
|
android:text="@string/shared_string_options"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -38,10 +38,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/snap_to_road_icon"
|
android:id="@+id/snap_to_road_icon"
|
||||||
|
@ -99,10 +99,10 @@
|
||||||
<View
|
<View
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginBottom="@dimen/measurement_tool_bottom_divider_margin_bottom"
|
android:layout_marginBottom="@dimen/bottom_sheet_divider_margin_bottom"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginLeft="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginStart="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginTop="@dimen/measurement_tool_bottom_divider_margin_top"
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
android:background="?attr/dashboard_divider"/>
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
@ -111,10 +111,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -143,10 +143,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/save_as_new_track_icon"
|
android:id="@+id/save_as_new_track_icon"
|
||||||
|
@ -174,10 +174,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/add_to_the_track_icon"
|
android:id="@+id/add_to_the_track_icon"
|
||||||
|
@ -202,10 +202,10 @@
|
||||||
<View
|
<View
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginBottom="@dimen/measurement_tool_bottom_divider_margin_bottom"
|
android:layout_marginBottom="@dimen/bottom_sheet_divider_margin_bottom"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginLeft="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginStart="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginTop="@dimen/measurement_tool_bottom_divider_margin_top"
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
android:background="?attr/dashboard_divider"/>
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
@ -214,10 +214,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/clear_all_icon"
|
android:id="@+id/clear_all_icon"
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/shared_string_options"
|
android:text="@string/shared_string_options"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -39,10 +39,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible">
|
tools:visibility="visible">
|
||||||
|
|
||||||
|
@ -71,10 +71,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/navigate_icon"
|
android:id="@+id/navigate_icon"
|
||||||
|
@ -99,10 +99,10 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/make_round_trip_icon"
|
android:id="@+id/make_round_trip_icon"
|
||||||
|
@ -161,10 +161,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/sort_by"
|
android:text="@string/sort_by"
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
|
@ -178,10 +178,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/door_to_door_icon"
|
android:id="@+id/door_to_door_icon"
|
||||||
|
@ -207,10 +207,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/reverse_icon"
|
android:id="@+id/reverse_icon"
|
||||||
|
|
|
@ -0,0 +1,80 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/bg_color"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:id="@+id/rename_marker_scroll_view"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/content_linear_layout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:paddingBottom="@dimen/dialog_content_margin">
|
||||||
|
|
||||||
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingEnd="@dimen/content_padding"
|
||||||
|
android:paddingLeft="@dimen/content_padding"
|
||||||
|
android:paddingRight="@dimen/content_padding"
|
||||||
|
android:paddingStart="@dimen/content_padding"
|
||||||
|
android:text="@string/enter_new_name"
|
||||||
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/close_button"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_cancel_button_height"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/shared_string_cancel"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textColor="?attr/color_dialog_buttons"
|
||||||
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="1dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/save_button"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_cancel_button_height"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/shared_string_save"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textColor="?attr/color_dialog_buttons"
|
||||||
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
|
@ -23,10 +23,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/shared_string_save_as_gpx"
|
android:text="@string/shared_string_save_as_gpx"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
osmand:typeface="@string/font_roboto_medium"/>
|
osmand:typeface="@string/font_roboto_medium"/>
|
||||||
|
@ -34,10 +34,10 @@
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_descr_height"
|
android:layout_height="@dimen/bottom_sheet_descr_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/measurement_tool_save_as_new_track_descr"
|
android:text="@string/measurement_tool_save_as_new_track_descr"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
android:textSize="@dimen/default_desc_text_size"/>
|
android:textSize="@dimen/default_desc_text_size"/>
|
||||||
|
@ -121,10 +121,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/route_point_icon"
|
android:id="@+id/route_point_icon"
|
||||||
|
@ -152,10 +152,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/line_icon"
|
android:id="@+id/line_icon"
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_selected_item_title_height"
|
android:layout_height="@dimen/bottom_sheet_selected_item_title_height"
|
||||||
android:minHeight="@dimen/bottom_sheet_selected_item_title_height"
|
android:minHeight="@dimen/bottom_sheet_selected_item_title_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/selected_point_icon"
|
android:id="@+id/selected_point_icon"
|
||||||
|
@ -104,10 +104,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/move_point_icon"
|
android:id="@+id/move_point_icon"
|
||||||
|
@ -135,10 +135,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/delete_point_icon"
|
android:id="@+id/delete_point_icon"
|
||||||
|
@ -163,10 +163,10 @@
|
||||||
<View
|
<View
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginBottom="@dimen/measurement_tool_bottom_divider_margin_bottom"
|
android:layout_marginBottom="@dimen/bottom_sheet_divider_margin_bottom"
|
||||||
android:layout_marginLeft="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginLeft="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginStart="@dimen/measurement_tool_bottom_divider_margin_start"
|
android:layout_marginStart="@dimen/bottom_sheet_divider_margin_start"
|
||||||
android:layout_marginTop="@dimen/measurement_tool_bottom_divider_margin_top"
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
android:background="?attr/dashboard_divider"/>
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
@ -175,10 +175,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/add_point_after_icon"
|
android:id="@+id/add_point_after_icon"
|
||||||
|
@ -206,10 +206,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/add_point_before_icon"
|
android:id="@+id/add_point_before_icon"
|
||||||
|
|
|
@ -23,20 +23,20 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_title_height"
|
android:layout_height="@dimen/bottom_sheet_title_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/choose_navigation_type"
|
android:text="@string/choose_navigation_type"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/bottom_sheet_descr_height"
|
android:layout_height="@dimen/bottom_sheet_descr_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:text="@string/measurement_tool_snap_to_road_descr"
|
android:text="@string/measurement_tool_snap_to_road_descr"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
android:textSize="@dimen/default_desc_text_size"/>
|
android:textSize="@dimen/default_desc_text_size"/>
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
|
|
|
@ -10,22 +10,22 @@
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="48dp"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:background="?attr/bg_color">
|
android:background="?attr/bg_color">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:layout_width="56dp"
|
android:layout_width="@dimen/map_button_shadow_width"
|
||||||
android:layout_height="48dp"
|
android:layout_height="match_parent"
|
||||||
tools:src="@drawable/ic_action_fav_dark"
|
tools:src="@drawable/ic_action_fav_dark"
|
||||||
tools:visibility="visible"
|
tools:visibility="visible"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/icon_space"
|
android:id="@+id/icon_space"
|
||||||
android:layout_width="16dp"
|
android:layout_width="@dimen/content_padding"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
<android.support.v7.widget.AppCompatTextView
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
@ -40,8 +40,8 @@
|
||||||
android:id="@+id/disable_group_switch"
|
android:id="@+id/disable_group_switch"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin"
|
||||||
android:focusableInTouchMode="true"/>
|
android:focusableInTouchMode="true"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="56dp"
|
android:layout_height="@dimen/map_button_shadow_width"
|
||||||
android:background="?attr/selectableItemBackground">
|
android:background="?attr/selectableItemBackground">
|
||||||
|
|
||||||
<android.support.v7.widget.AppCompatImageView
|
<android.support.v7.widget.AppCompatImageView
|
||||||
android:id="@+id/map_marker_reorder_icon"
|
android:id="@+id/map_marker_reorder_icon"
|
||||||
android:layout_width="56dp"
|
android:layout_width="@dimen/map_button_shadow_width"
|
||||||
android:layout_height="56dp"
|
android:layout_height="@dimen/map_button_shadow_width"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:scaleType="centerInside"
|
android:scaleType="centerInside"
|
||||||
android:tint="?attr/secondary_icon_color"
|
android:tint="?attr/secondary_icon_color"
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/flag_icon_left_space"
|
android:id="@+id/flag_icon_left_space"
|
||||||
android:layout_width="16dp"
|
android:layout_width="@dimen/content_padding"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible"/>
|
||||||
|
@ -49,8 +49,8 @@
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="@dimen/bottom_sheet_content_margin"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin"
|
||||||
tools:src="@drawable/ic_action_flag_dark"/>
|
tools:src="@drawable/ic_action_flag_dark"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="28dp">
|
android:layout_height="@dimen/map_marker_title_height">
|
||||||
|
|
||||||
<android.support.v7.widget.AppCompatTextView
|
<android.support.v7.widget.AppCompatTextView
|
||||||
android:id="@+id/map_marker_title"
|
android:id="@+id/map_marker_title"
|
||||||
|
@ -96,8 +96,8 @@
|
||||||
android:id="@+id/map_marker_direction_icon"
|
android:id="@+id/map_marker_direction_icon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="4dp"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginRight="4dp"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
tools:src="@drawable/ic_direction_arrow"/>
|
tools:src="@drawable/ic_direction_arrow"/>
|
||||||
|
|
||||||
<android.support.v7.widget.AppCompatTextView
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/map_marker_left_point_space"
|
android:id="@+id/map_marker_left_point_space"
|
||||||
android:layout_width="4dp"
|
android:layout_width="@dimen/text_margin_small"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
<android.support.v7.widget.AppCompatTextView
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/map_marker_right_point_space"
|
android:id="@+id/map_marker_right_point_space"
|
||||||
android:layout_width="4dp"
|
android:layout_width="@dimen/text_margin_small"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
|
|
||||||
<android.support.v7.widget.AppCompatTextView
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
@ -143,8 +143,8 @@
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/map_marker_options_button"
|
android:id="@+id/map_marker_options_button"
|
||||||
android:layout_width="56dp"
|
android:layout_width="@dimen/map_button_shadow_width"
|
||||||
android:layout_height="56dp"
|
android:layout_height="@dimen/map_button_shadow_width"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
tools:background="@drawable/marker_circle_background_dark_with_inset"
|
tools:background="@drawable/marker_circle_background_dark_with_inset"
|
||||||
tools:src="@drawable/ic_action_marker_passed"/>
|
tools:src="@drawable/ic_action_marker_passed"/>
|
||||||
|
@ -158,10 +158,10 @@
|
||||||
android:id="@+id/map_marker_check_box"
|
android:id="@+id/map_marker_check_box"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="16dp"
|
android:layout_marginBottom="@dimen/bottom_sheet_content_margin"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin"
|
||||||
android:layout_marginTop="16dp"
|
android:layout_marginTop="@dimen/bottom_sheet_content_margin"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible"/>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
@ -172,8 +172,8 @@
|
||||||
android:id="@+id/divider"
|
android:id="@+id/divider"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginLeft="56dp"
|
android:layout_marginLeft="@dimen/map_button_shadow_width"
|
||||||
android:layout_marginStart="56dp"
|
android:layout_marginStart="@dimen/map_button_shadow_width"
|
||||||
tools:background="?attr/dashboard_divider"/>
|
tools:background="?attr/dashboard_divider"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,19 @@
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="48dp">
|
android:layout_height="@dimen/bottom_sheet_list_item_height">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<net.osmand.plus.widgets.TextViewEx
|
||||||
android:background="?attr/bg_color"
|
android:background="?attr/bg_color"
|
||||||
android:id="@+id/show_hide_history_title"
|
android:id="@+id/show_hide_history_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingLeft="56dp"
|
android:paddingLeft="@dimen/map_button_shadow_width"
|
||||||
android:paddingStart="56dp"
|
android:paddingStart="@dimen/map_button_shadow_width"
|
||||||
android:textAllCaps="true"
|
android:textAllCaps="true"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
tools:text="Show passed"
|
tools:text="Show passed"
|
||||||
android:textSize="12sp"
|
android:textSize="@dimen/default_sub_text_size"
|
||||||
osmand:typeface="@string/font_roboto_medium"
|
osmand:typeface="@string/font_roboto_medium"
|
||||||
android:textColor="@color/dashboard_blue"/>
|
android:textColor="@color/dashboard_blue"/>
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/degrees_icon"
|
android:id="@+id/degrees_icon"
|
||||||
|
@ -51,10 +51,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/minutes_icon"
|
android:id="@+id/minutes_icon"
|
||||||
|
@ -89,10 +89,10 @@
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/seconds_icon"
|
android:id="@+id/seconds_icon"
|
||||||
|
|
160
OsmAnd/res/layout/marker_menu_on_map_content.xml
Normal file
160
OsmAnd/res/layout/marker_menu_on_map_content.xml
Normal file
|
@ -0,0 +1,160 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_selected_item_title_height"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/marker_icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
|
android:layout_marginLeft="@dimen/content_padding"
|
||||||
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
android:layout_marginStart="@dimen/content_padding"
|
||||||
|
tools:src="@drawable/ic_action_flag_dark"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
android:id="@+id/marker_title"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:textColor="?android:textColorPrimary"
|
||||||
|
android:textSize="@dimen/default_list_text_size"
|
||||||
|
tools:text="Van Gogh Museum"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/marker_direction_icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginEnd="4dp"
|
||||||
|
android:layout_marginRight="4dp"
|
||||||
|
android:layout_marginTop="1sp"
|
||||||
|
tools:src="@drawable/ic_direction_arrow"/>
|
||||||
|
|
||||||
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
android:id="@+id/marker_distance"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
|
tools:text="213 m"/>
|
||||||
|
|
||||||
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
android:id="@+id/marker_divider_point"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text=" • "
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:textSize="@dimen/default_desc_text_size"/>
|
||||||
|
|
||||||
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
android:id="@+id/marker_description"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
|
tools:text="Amsterdam Weekend"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/marker_visited_button"
|
||||||
|
android:layout_width="56dp"
|
||||||
|
android:layout_height="56dp"
|
||||||
|
tools:background="@drawable/marker_circle_background_dark_with_inset"
|
||||||
|
tools:src="@drawable/ic_action_marker_passed"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_marginBottom="@dimen/bottom_sheet_divider_margin_bottom"
|
||||||
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/rename_row"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/rename_icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
|
android:layout_marginLeft="@dimen/content_padding"
|
||||||
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
android:layout_marginStart="@dimen/content_padding"
|
||||||
|
tools:src="@drawable/ic_action_edit_dark"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="@string/shared_string_rename"
|
||||||
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:layout_marginBottom="@dimen/bottom_sheet_divider_margin_bottom"
|
||||||
|
android:layout_marginLeft="@dimen/bottom_sheet_divider_margin_start"
|
||||||
|
android:layout_marginStart="@dimen/bottom_sheet_divider_margin_start"
|
||||||
|
android:layout_marginTop="@dimen/bottom_sheet_divider_margin_top"
|
||||||
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/delete_row"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
|
android:background="?attr/selectableItemBackground"
|
||||||
|
android:gravity="center_vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/delete_icon"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||||
|
android:layout_marginLeft="@dimen/content_padding"
|
||||||
|
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||||
|
android:layout_marginStart="@dimen/content_padding"
|
||||||
|
tools:src="@drawable/ic_action_delete_dark"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="@string/shared_string_delete"
|
||||||
|
android:textAppearance="@style/TextAppearance.ListItemTitle"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
|
@ -15,10 +15,10 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/shared_string_name"
|
android:hint="@string/shared_string_name"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding">
|
android:paddingStart="@dimen/content_padding">
|
||||||
|
|
||||||
<android.support.design.widget.TextInputEditText
|
<android.support.design.widget.TextInputEditText
|
||||||
android:id="@+id/name_edit_text"
|
android:id="@+id/name_edit_text"
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
android:id="@+id/name_text_box"
|
android:id="@+id/name_text_box"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingEnd="@dimen/bottom_sheet_content_padding"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="@dimen/bottom_sheet_content_padding"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="@dimen/bottom_sheet_content_padding"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="@dimen/bottom_sheet_content_padding"
|
android:paddingStart="@dimen/content_padding"
|
||||||
app:labelText="@string/shared_string_name">
|
app:labelText="@string/shared_string_name">
|
||||||
|
|
||||||
<studio.carbonylgroup.textfieldboxes.ExtendedEditText
|
<studio.carbonylgroup.textfieldboxes.ExtendedEditText
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="48dp"
|
android:layout_height="@dimen/bottom_sheet_list_item_height"
|
||||||
android:descendantFocusability="blocksDescendants">
|
android:descendantFocusability="blocksDescendants">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:paddingBottom="12dp"
|
android:paddingBottom="@dimen/measurement_tool_content_padding_medium"
|
||||||
android:paddingEnd="16dp"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="16dp"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="@dimen/measurement_tool_content_padding_medium"
|
||||||
android:tint="?attr/secondary_icon_color"
|
android:tint="?attr/secondary_icon_color"
|
||||||
tools:src="@drawable/ic_action_reorder"/>
|
tools:src="@drawable/ic_action_reorder"/>
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="@dimen/bottom_sheet_content_margin"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin"
|
||||||
android:layout_toEndOf="@id/measure_point_reorder_icon"
|
android:layout_toEndOf="@id/measure_point_reorder_icon"
|
||||||
android:layout_toRightOf="@id/measure_point_reorder_icon"
|
android:layout_toRightOf="@id/measure_point_reorder_icon"
|
||||||
tools:src="@drawable/ic_action_measure_point"/>
|
tools:src="@drawable/ic_action_measure_point"/>
|
||||||
|
@ -47,12 +47,12 @@
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:paddingBottom="12dp"
|
android:paddingBottom="@dimen/measurement_tool_content_padding_medium"
|
||||||
android:paddingEnd="16dp"
|
android:paddingEnd="@dimen/content_padding"
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="@dimen/content_padding"
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="@dimen/content_padding"
|
||||||
android:paddingStart="16dp"
|
android:paddingStart="@dimen/content_padding"
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="@dimen/measurement_tool_content_padding_medium"
|
||||||
tools:src="@drawable/ic_action_remove_dark"/>
|
tools:src="@drawable/ic_action_remove_dark"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -95,8 +95,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
android:textSize="@dimen/default_sub_text_size"
|
android:textSize="@dimen/default_sub_text_size"
|
||||||
android:layout_marginLeft="8dp"
|
android:layout_marginLeft="@dimen/bottom_sheet_content_margin_small"
|
||||||
android:layout_marginRight="8dp"
|
android:layout_marginRight="@dimen/bottom_sheet_content_margin_small"
|
||||||
tools:text="Altitude: 345 m"/>
|
tools:text="Altitude: 345 m"/>
|
||||||
|
|
||||||
<android.support.v7.widget.AppCompatTextView
|
<android.support.v7.widget.AppCompatTextView
|
||||||
|
|
|
@ -108,8 +108,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_marginEnd="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginEnd="@dimen/text_margin_small"
|
||||||
android:layout_marginRight="@dimen/measurement_tool_text_margin_small"
|
android:layout_marginRight="@dimen/text_margin_small"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
android:textAppearance="@style/TextAppearance.ListItemTitle"
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="@dimen/bottom_sheet_content_padding">
|
android:padding="@dimen/content_padding">
|
||||||
|
|
||||||
<android.support.v7.widget.SwitchCompat
|
<android.support.v7.widget.SwitchCompat
|
||||||
android:id="@+id/toggle_show_on_map"
|
android:id="@+id/toggle_show_on_map"
|
||||||
|
|
|
@ -75,6 +75,8 @@
|
||||||
<dimen name="default_sub_text_size">14sp</dimen>
|
<dimen name="default_sub_text_size">14sp</dimen>
|
||||||
<dimen name="welcome_header_text_size">27sp</dimen>
|
<dimen name="welcome_header_text_size">27sp</dimen>
|
||||||
|
|
||||||
|
<dimen name="dialog_header_text_size">24sp</dimen>
|
||||||
|
|
||||||
<dimen name="default_split_segments_overview">15sp</dimen>
|
<dimen name="default_split_segments_overview">15sp</dimen>
|
||||||
<dimen name="default_split_segments_data">15sp</dimen>
|
<dimen name="default_split_segments_data">15sp</dimen>
|
||||||
<dimen name="default_split_segments_sub">12sp</dimen>
|
<dimen name="default_split_segments_sub">12sp</dimen>
|
||||||
|
@ -97,11 +99,11 @@
|
||||||
<dimen name="measurement_tool_select_radius">30dp</dimen>
|
<dimen name="measurement_tool_select_radius">30dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_margin">24dp</dimen>
|
<dimen name="bottom_sheet_content_margin">24dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_margin_small">12dp</dimen>
|
<dimen name="bottom_sheet_content_margin_small">12dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_padding">24dp</dimen>
|
<dimen name="content_padding">24dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_padding_small">12dp</dimen>
|
<dimen name="bottom_sheet_content_padding_small">12dp</dimen>
|
||||||
<dimen name="measurement_tool_divider_margin">12dp</dimen>
|
<dimen name="measurement_tool_divider_margin">12dp</dimen>
|
||||||
<dimen name="measurement_tool_content_padding_medium">18dp</dimen>
|
<dimen name="measurement_tool_content_padding_medium">18dp</dimen>
|
||||||
<dimen name="measurement_tool_text_margin_small">6dp</dimen>
|
<dimen name="text_margin_small">6dp</dimen>
|
||||||
<dimen name="measurement_tool_text_margin">12dp</dimen>
|
<dimen name="measurement_tool_text_margin">12dp</dimen>
|
||||||
<dimen name="measurement_tool_points_list_container_height">330dp</dimen>
|
<dimen name="measurement_tool_points_list_container_height">330dp</dimen>
|
||||||
<dimen name="measurement_tool_up_down_row_height">48dp</dimen>
|
<dimen name="measurement_tool_up_down_row_height">48dp</dimen>
|
||||||
|
@ -118,13 +120,16 @@
|
||||||
<dimen name="bottom_sheet_descr_height">66dp</dimen>
|
<dimen name="bottom_sheet_descr_height">66dp</dimen>
|
||||||
<dimen name="bottom_sheet_list_item_height">72dp</dimen>
|
<dimen name="bottom_sheet_list_item_height">72dp</dimen>
|
||||||
<dimen name="bottom_sheet_icon_margin">36dp</dimen>
|
<dimen name="bottom_sheet_icon_margin">36dp</dimen>
|
||||||
<dimen name="measurement_tool_bottom_divider_margin_top">11dp</dimen>
|
<dimen name="bottom_sheet_divider_margin_top">11dp</dimen>
|
||||||
<dimen name="measurement_tool_bottom_divider_margin_bottom">12dp</dimen>
|
<dimen name="bottom_sheet_divider_margin_bottom">12dp</dimen>
|
||||||
<dimen name="measurement_tool_bottom_divider_margin_start">96dp</dimen>
|
<dimen name="bottom_sheet_divider_margin_start">84dp</dimen>
|
||||||
<dimen name="bottom_sheet_image_text_margin_start">15dp</dimen>
|
<dimen name="bottom_sheet_image_text_margin_start">15dp</dimen>
|
||||||
<dimen name="bottom_sheet_selected_item_title_height">84dp</dimen>
|
<dimen name="bottom_sheet_selected_item_title_height">84dp</dimen>
|
||||||
|
|
||||||
<dimen name="map_markers_recycler_view_padding_bottom">78dp</dimen>
|
<dimen name="map_markers_recycler_view_padding_bottom">78dp</dimen>
|
||||||
<dimen name="map_markers_recycler_view_padding_top">15dp</dimen>
|
<dimen name="map_markers_recycler_view_padding_top">15dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="shadow_height">8dp</dimen>
|
||||||
|
<dimen name="map_marker_title_height">42dp</dimen>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -162,11 +162,11 @@
|
||||||
<dimen name="measurement_tool_select_radius">20dp</dimen>
|
<dimen name="measurement_tool_select_radius">20dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_margin">16dp</dimen>
|
<dimen name="bottom_sheet_content_margin">16dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_margin_small">8dp</dimen>
|
<dimen name="bottom_sheet_content_margin_small">8dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_padding">16dp</dimen>
|
<dimen name="content_padding">16dp</dimen>
|
||||||
<dimen name="bottom_sheet_content_padding_small">8dp</dimen>
|
<dimen name="bottom_sheet_content_padding_small">8dp</dimen>
|
||||||
<dimen name="measurement_tool_divider_margin">8dp</dimen>
|
<dimen name="measurement_tool_divider_margin">8dp</dimen>
|
||||||
<dimen name="measurement_tool_content_padding_medium">12dp</dimen>
|
<dimen name="measurement_tool_content_padding_medium">12dp</dimen>
|
||||||
<dimen name="measurement_tool_text_margin_small">4dp</dimen>
|
<dimen name="text_margin_small">4dp</dimen>
|
||||||
<dimen name="measurement_tool_text_margin">8dp</dimen>
|
<dimen name="measurement_tool_text_margin">8dp</dimen>
|
||||||
<dimen name="measurement_tool_points_list_container_height">220dp</dimen>
|
<dimen name="measurement_tool_points_list_container_height">220dp</dimen>
|
||||||
<dimen name="measurement_tool_up_down_row_height">48dp</dimen>
|
<dimen name="measurement_tool_up_down_row_height">48dp</dimen>
|
||||||
|
@ -183,12 +183,15 @@
|
||||||
<dimen name="bottom_sheet_descr_height">44dp</dimen>
|
<dimen name="bottom_sheet_descr_height">44dp</dimen>
|
||||||
<dimen name="bottom_sheet_list_item_height">48dp</dimen>
|
<dimen name="bottom_sheet_list_item_height">48dp</dimen>
|
||||||
<dimen name="bottom_sheet_icon_margin">24dp</dimen>
|
<dimen name="bottom_sheet_icon_margin">24dp</dimen>
|
||||||
<dimen name="measurement_tool_bottom_divider_margin_top">7dp</dimen>
|
<dimen name="bottom_sheet_divider_margin_top">7dp</dimen>
|
||||||
<dimen name="measurement_tool_bottom_divider_margin_bottom">8dp</dimen>
|
<dimen name="bottom_sheet_divider_margin_bottom">8dp</dimen>
|
||||||
<dimen name="measurement_tool_bottom_divider_margin_start">64dp</dimen>
|
<dimen name="bottom_sheet_divider_margin_start">64dp</dimen>
|
||||||
<dimen name="bottom_sheet_image_text_margin_start">10dp</dimen>
|
<dimen name="bottom_sheet_image_text_margin_start">10dp</dimen>
|
||||||
<dimen name="bottom_sheet_selected_item_title_height">56dp</dimen>
|
<dimen name="bottom_sheet_selected_item_title_height">56dp</dimen>
|
||||||
|
|
||||||
<dimen name="map_markers_recycler_view_padding_bottom">52dp</dimen>
|
<dimen name="map_markers_recycler_view_padding_bottom">52dp</dimen>
|
||||||
<dimen name="map_markers_recycler_view_padding_top">10dp</dimen>
|
<dimen name="map_markers_recycler_view_padding_top">10dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="shadow_height">5dp</dimen>
|
||||||
|
<dimen name="map_marker_title_height">28dp</dimen>
|
||||||
</resources>
|
</resources>
|
|
@ -11,6 +11,9 @@
|
||||||
-->
|
-->
|
||||||
<string name="view">View</string>
|
<string name="view">View</string>
|
||||||
<string name="waypoints_added_to_map_markers">Waypoints added to map markers</string>
|
<string name="waypoints_added_to_map_markers">Waypoints added to map markers</string>
|
||||||
|
<string name="wrong_input">Wrong input</string>
|
||||||
|
<string name="enter_new_name">Enter new name</string>
|
||||||
|
<string name="shared_string_back">Back</string>
|
||||||
<string name="wrong_format">Wrong format</string>
|
<string name="wrong_format">Wrong format</string>
|
||||||
<string name="shared_string_road">Road</string>
|
<string name="shared_string_road">Road</string>
|
||||||
<string name="show_map">Show map</string>
|
<string name="show_map">Show map</string>
|
||||||
|
|
|
@ -101,6 +101,10 @@ public class MapMarkersHelper {
|
||||||
return pointDescription == null ? "" : pointDescription.getName();
|
return pointDescription == null ? "" : pointDescription.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
pointDescription.setName(name);
|
||||||
|
}
|
||||||
|
|
||||||
public double getLatitude() {
|
public double getLatitude() {
|
||||||
return point.getLatitude();
|
return point.getLatitude();
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class HistoryMarkerMenuBottomSheetDialogFragment extends BottomSheetDialo
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight()
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
>= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -59,9 +59,10 @@ public class MapMarkersActiveFragment extends Fragment implements OsmAndCompassL
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
MapMarker marker = adapter.getItem(pos);
|
MapMarker marker = adapter.getItem(pos);
|
||||||
mapActivity.getMyApplication().getSettings().setMapLocationToShow(marker.getLatitude(), marker.getLongitude(),
|
mapActivity.getMyApplication().getSettings()
|
||||||
15, marker.getPointDescription(mapActivity), true, marker);
|
.setMapLocationToShow(marker.getLatitude(), marker.getLongitude(), 15, null, false, null);
|
||||||
MapActivity.launchMapActivityMoveToTop(mapActivity);
|
MapActivity.launchMapActivityMoveToTop(mapActivity);
|
||||||
|
MarkerMenuOnMapFragment.showInstance(mapActivity, marker);
|
||||||
((DialogFragment) getParentFragment()).dismiss();
|
((DialogFragment) getParentFragment()).dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ import android.graphics.Rect;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
import android.support.design.widget.Snackbar;
|
import android.support.design.widget.Snackbar;
|
||||||
|
import android.support.v4.app.DialogFragment;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.support.v4.content.ContextCompat;
|
import android.support.v4.content.ContextCompat;
|
||||||
import android.support.v7.widget.LinearLayoutManager;
|
import android.support.v7.widget.LinearLayoutManager;
|
||||||
|
@ -203,6 +204,24 @@ public class MapMarkersGroupsFragment extends Fragment implements OsmAndCompassL
|
||||||
itemTouchHelper.attachToRecyclerView(recyclerView);
|
itemTouchHelper.attachToRecyclerView(recyclerView);
|
||||||
|
|
||||||
adapter = new MapMarkersGroupsAdapter(mapActivity);
|
adapter = new MapMarkersGroupsAdapter(mapActivity);
|
||||||
|
adapter.setListener(new MapMarkersGroupsAdapter.MapMarkersGroupsAdapterListener() {
|
||||||
|
@Override
|
||||||
|
public void onItemClick(View view) {
|
||||||
|
int pos = recyclerView.getChildAdapterPosition(view);
|
||||||
|
if (pos == RecyclerView.NO_POSITION) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Object item = adapter.getItem(pos);
|
||||||
|
if (item instanceof MapMarker) {
|
||||||
|
MapMarker marker = (MapMarker) item;
|
||||||
|
mapActivity.getMyApplication().getSettings()
|
||||||
|
.setMapLocationToShow(marker.getLatitude(), marker.getLongitude(), 15, null, false, null);
|
||||||
|
MapActivity.launchMapActivityMoveToTop(mapActivity);
|
||||||
|
MarkerMenuOnMapFragment.showInstance(mapActivity, marker);
|
||||||
|
((DialogFragment) getParentFragment()).dismiss();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
recyclerView.setAdapter(adapter);
|
recyclerView.setAdapter(adapter);
|
||||||
return recyclerView;
|
return recyclerView;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,329 @@
|
||||||
|
package net.osmand.plus.mapmarkers;
|
||||||
|
|
||||||
|
import android.graphics.drawable.Drawable;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.support.annotation.DrawableRes;
|
||||||
|
import android.support.annotation.NonNull;
|
||||||
|
import android.support.annotation.Nullable;
|
||||||
|
import android.support.design.widget.Snackbar;
|
||||||
|
import android.support.v4.app.Fragment;
|
||||||
|
import android.support.v4.app.FragmentManager;
|
||||||
|
import android.support.v4.content.ContextCompat;
|
||||||
|
import android.view.ContextThemeWrapper;
|
||||||
|
import android.view.LayoutInflater;
|
||||||
|
import android.view.View;
|
||||||
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.ImageButton;
|
||||||
|
import android.widget.ImageView;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import net.osmand.Location;
|
||||||
|
import net.osmand.data.LatLon;
|
||||||
|
import net.osmand.plus.IconsCache;
|
||||||
|
import net.osmand.plus.MapMarkersHelper.MapMarker;
|
||||||
|
import net.osmand.plus.OsmAndLocationProvider.OsmAndCompassListener;
|
||||||
|
import net.osmand.plus.OsmAndLocationProvider.OsmAndLocationListener;
|
||||||
|
import net.osmand.plus.OsmandApplication;
|
||||||
|
import net.osmand.plus.R;
|
||||||
|
import net.osmand.plus.activities.MapActivity;
|
||||||
|
import net.osmand.plus.dashboard.DashLocationFragment;
|
||||||
|
import net.osmand.plus.helpers.AndroidUiHelper;
|
||||||
|
import net.osmand.plus.views.OsmandMapTileView;
|
||||||
|
import net.osmand.util.MapUtils;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
|
import static net.osmand.plus.OsmandSettings.LANDSCAPE_MIDDLE_RIGHT_CONSTANT;
|
||||||
|
import static net.osmand.plus.OsmandSettings.MIDDLE_TOP_CONSTANT;
|
||||||
|
|
||||||
|
public class MarkerMenuOnMapFragment extends Fragment implements OsmAndCompassListener, OsmAndLocationListener {
|
||||||
|
|
||||||
|
public static final String TAG = "MarkerMenuOnMapFragment";
|
||||||
|
|
||||||
|
private IconsCache iconsCache;
|
||||||
|
private MapMarker marker;
|
||||||
|
|
||||||
|
private boolean night;
|
||||||
|
private boolean portrait;
|
||||||
|
|
||||||
|
private int previousMapPosition;
|
||||||
|
|
||||||
|
private Float heading;
|
||||||
|
private Location location;
|
||||||
|
|
||||||
|
private ImageView arrowIv;
|
||||||
|
private TextView distanceTv;
|
||||||
|
private View dividerPoint;
|
||||||
|
|
||||||
|
public void setMarker(MapMarker marker) {
|
||||||
|
this.marker = marker;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
|
final OsmandApplication app = (OsmandApplication) getActivity().getApplication();
|
||||||
|
night = app.getDaynightHelper().isNightModeForMapControls();
|
||||||
|
iconsCache = app.getIconsCache();
|
||||||
|
portrait = AndroidUiHelper.isOrientationPortrait(getActivity());
|
||||||
|
final int themeRes = night ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
|
||||||
|
|
||||||
|
final View mainView = View.inflate(new ContextThemeWrapper(getContext(), themeRes), R.layout.fragment_marker_menu_on_map, null);
|
||||||
|
mainView.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
((ImageView) mainView.findViewById(R.id.marker_icon))
|
||||||
|
.setImageDrawable(iconsCache.getIcon(R.drawable.ic_action_flag_dark, MapMarker.getColorId(marker.colorIndex)));
|
||||||
|
((ImageView) mainView.findViewById(R.id.rename_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_edit_dark));
|
||||||
|
((ImageView) mainView.findViewById(R.id.delete_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_delete_dark));
|
||||||
|
|
||||||
|
((TextView) mainView.findViewById(R.id.marker_title)).setText(marker.getName(getActivity()));
|
||||||
|
|
||||||
|
arrowIv = (ImageView) mainView.findViewById(R.id.marker_direction_icon);
|
||||||
|
distanceTv = (TextView) mainView.findViewById(R.id.marker_distance);
|
||||||
|
dividerPoint = mainView.findViewById(R.id.marker_divider_point);
|
||||||
|
|
||||||
|
String descr;
|
||||||
|
if ((descr = marker.groupName) != null) {
|
||||||
|
if (descr.equals("")) {
|
||||||
|
descr = getActivity().getString(R.string.shared_string_favorites);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Date date = new Date(marker.creationDate);
|
||||||
|
String month = new SimpleDateFormat("MMM", Locale.getDefault()).format(date);
|
||||||
|
if (month.length() > 1) {
|
||||||
|
month = Character.toUpperCase(month.charAt(0)) + month.substring(1);
|
||||||
|
}
|
||||||
|
month = month.replaceAll("\\.", "");
|
||||||
|
String day = new SimpleDateFormat("d", Locale.getDefault()).format(date);
|
||||||
|
descr = month + " " + day;
|
||||||
|
}
|
||||||
|
((TextView) mainView.findViewById(R.id.marker_description)).setText(descr);
|
||||||
|
|
||||||
|
ImageButton visitedBtn = (ImageButton) mainView.findViewById(R.id.marker_visited_button);
|
||||||
|
visitedBtn.setBackgroundDrawable(ContextCompat.getDrawable(getContext(),
|
||||||
|
night ? R.drawable.marker_circle_background_dark_with_inset : R.drawable.marker_circle_background_light_with_inset));
|
||||||
|
visitedBtn.setImageDrawable(iconsCache.getIcon(R.drawable.ic_action_marker_passed, night ? 0 : R.color.icon_color));
|
||||||
|
visitedBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
app.getMapMarkersHelper().moveMapMarkerToHistory(marker);
|
||||||
|
MapActivity mapActivity = getMapActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
Snackbar.make(mapActivity.findViewById(R.id.bottomFragmentContainer), R.string.marker_moved_to_history, Snackbar.LENGTH_LONG)
|
||||||
|
.setAction(R.string.shared_string_undo, new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
app.getMapMarkersHelper().restoreMarkerFromHistory(marker, 0);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.show();
|
||||||
|
}
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
mainView.findViewById(R.id.rename_row).setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
MapActivity mapActivity = getMapActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
RenameMarkerBottomSheetDialogFragment fragment = new RenameMarkerBottomSheetDialogFragment();
|
||||||
|
fragment.setMarker(marker);
|
||||||
|
fragment.setRetainInstance(true);
|
||||||
|
fragment.show(mapActivity.getSupportFragmentManager(), RenameMarkerBottomSheetDialogFragment.TAG);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
mainView.findViewById(R.id.delete_row).setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
app.getMapMarkersHelper().removeMarker(marker);
|
||||||
|
MapActivity mapActivity = getMapActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
Snackbar.make(mapActivity.findViewById(R.id.bottomFragmentContainer), R.string.item_removed, Snackbar.LENGTH_LONG)
|
||||||
|
.setAction(R.string.shared_string_undo, new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
app.getMapMarkersHelper().addMarker(marker);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.show();
|
||||||
|
}
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
mainView.findViewById(R.id.back_row).setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
MapActivity mapActivity = getMapActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
MapMarkersDialogFragment.showInstance(mapActivity);
|
||||||
|
}
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return mainView;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
enterMenuMode();
|
||||||
|
startLocationUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
exitMenuMode();
|
||||||
|
stopLocationUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateLocation(Location location) {
|
||||||
|
boolean newLocation = this.location == null && location != null;
|
||||||
|
boolean locationChanged = this.location != null && location != null
|
||||||
|
&& this.location.getLatitude() != location.getLatitude()
|
||||||
|
&& this.location.getLongitude() != location.getLongitude();
|
||||||
|
if (newLocation || locationChanged) {
|
||||||
|
this.location = location;
|
||||||
|
updateLocationUi();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateCompassValue(float value) {
|
||||||
|
// 99 in next line used to one-time initialize arrows (with reference vs. fixed-north direction)
|
||||||
|
// on non-compass devices
|
||||||
|
float lastHeading = heading != null ? heading : 99;
|
||||||
|
heading = value;
|
||||||
|
if (Math.abs(MapUtils.degreesDiff(lastHeading, heading)) > 5) {
|
||||||
|
updateLocationUi();
|
||||||
|
} else {
|
||||||
|
heading = lastHeading;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private OsmandApplication getMyApplication() {
|
||||||
|
if (getActivity() != null) {
|
||||||
|
return ((MapActivity) getActivity()).getMyApplication();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private MapActivity getMapActivity() {
|
||||||
|
return (MapActivity) getActivity();
|
||||||
|
}
|
||||||
|
|
||||||
|
private Drawable getContentIcon(@DrawableRes int id) {
|
||||||
|
return iconsCache.getIcon(id, night ? R.color.ctx_menu_info_text_dark : R.color.on_map_icon_color);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void startLocationUpdate() {
|
||||||
|
OsmandApplication app = getMyApplication();
|
||||||
|
if (app != null) {
|
||||||
|
app.getLocationProvider().removeCompassListener(app.getLocationProvider().getNavigationInfo());
|
||||||
|
app.getLocationProvider().addCompassListener(this);
|
||||||
|
app.getLocationProvider().addLocationListener(this);
|
||||||
|
updateLocationUi();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void stopLocationUpdate() {
|
||||||
|
OsmandApplication app = getMyApplication();
|
||||||
|
if (app != null) {
|
||||||
|
app.getLocationProvider().removeLocationListener(this);
|
||||||
|
app.getLocationProvider().removeCompassListener(this);
|
||||||
|
app.getLocationProvider().addCompassListener(app.getLocationProvider().getNavigationInfo());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateLocationUi() {
|
||||||
|
final MapActivity mapActivity = (MapActivity) getActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
mapActivity.getMyApplication().runInUIThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
if (location == null) {
|
||||||
|
location = mapActivity.getMyApplication().getLocationProvider().getLastKnownLocation();
|
||||||
|
}
|
||||||
|
if (location != null) {
|
||||||
|
mark(View.VISIBLE, arrowIv, distanceTv, dividerPoint);
|
||||||
|
DashLocationFragment.updateLocationView(false,
|
||||||
|
new LatLon(location.getLatitude(), location.getLongitude()),
|
||||||
|
heading != null ? heading : 0f,
|
||||||
|
arrowIv,
|
||||||
|
distanceTv,
|
||||||
|
marker.getLatitude(),
|
||||||
|
marker.getLongitude(),
|
||||||
|
DashLocationFragment.getScreenOrientation(mapActivity),
|
||||||
|
mapActivity.getMyApplication(),
|
||||||
|
mapActivity);
|
||||||
|
} else {
|
||||||
|
mark(View.GONE, arrowIv, distanceTv, dividerPoint);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void mark(int visibility, View... views) {
|
||||||
|
for (View v : views) {
|
||||||
|
v.setVisibility(visibility);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void enterMenuMode() {
|
||||||
|
final MapActivity mapActivity = getMapActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
mapActivity.disableDrawer();
|
||||||
|
mapActivity.getMapLayers().getMapControlsLayer().hideMapControls();
|
||||||
|
OsmandMapTileView tileView = mapActivity.getMapView();
|
||||||
|
previousMapPosition = tileView.getMapPosition();
|
||||||
|
tileView.setMapPosition(portrait ? MIDDLE_TOP_CONSTANT : LANDSCAPE_MIDDLE_RIGHT_CONSTANT);
|
||||||
|
mapActivity.refreshMap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void exitMenuMode() {
|
||||||
|
MapActivity mapActivity = getMapActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
mapActivity.enableDrawer();
|
||||||
|
mapActivity.getMapLayers().getMapControlsLayer().showMapControls();
|
||||||
|
mapActivity.getMapView().setMapPosition(previousMapPosition);
|
||||||
|
mapActivity.refreshMap();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void dismiss() {
|
||||||
|
MapActivity mapActivity = getMapActivity();
|
||||||
|
if (mapActivity != null) {
|
||||||
|
mapActivity.getSupportFragmentManager().popBackStackImmediate(TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static boolean showInstance(MapActivity mapActivity, @NonNull MapMarker marker) {
|
||||||
|
try {
|
||||||
|
MarkerMenuOnMapFragment fragment = new MarkerMenuOnMapFragment();
|
||||||
|
fragment.setRetainInstance(true);
|
||||||
|
fragment.setMarker(marker);
|
||||||
|
mapActivity.getSupportFragmentManager().beginTransaction()
|
||||||
|
.replace(R.id.fragmentContainer, fragment, TAG)
|
||||||
|
.addToBackStack(TAG)
|
||||||
|
.commitAllowingStateLoss();
|
||||||
|
return true;
|
||||||
|
} catch (Exception e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -79,7 +79,7 @@ public class OptionsBottomSheetDialogFragment extends BottomSheetDialogFragment
|
||||||
((ImageView) mainView.findViewById(R.id.coordinate_input_icon))
|
((ImageView) mainView.findViewById(R.id.coordinate_input_icon))
|
||||||
.setImageDrawable(getContentIcon(R.drawable.ic_action_coordinates_longitude));
|
.setImageDrawable(getContentIcon(R.drawable.ic_action_coordinates_longitude));
|
||||||
((ImageView) mainView.findViewById(R.id.build_route_icon))
|
((ImageView) mainView.findViewById(R.id.build_route_icon))
|
||||||
.setImageDrawable(getContentIcon(R.drawable.map_directions));
|
.setImageDrawable(getContentIcon(R.drawable.ic_action_gdirections_dark));
|
||||||
((ImageView) mainView.findViewById(R.id.save_as_new_track_icon))
|
((ImageView) mainView.findViewById(R.id.save_as_new_track_icon))
|
||||||
.setImageDrawable(getContentIcon(R.drawable.ic_action_polygom_dark));
|
.setImageDrawable(getContentIcon(R.drawable.ic_action_polygom_dark));
|
||||||
((ImageView) mainView.findViewById(R.id.move_all_to_history_icon))
|
((ImageView) mainView.findViewById(R.id.move_all_to_history_icon))
|
||||||
|
@ -179,7 +179,7 @@ public class OptionsBottomSheetDialogFragment extends BottomSheetDialogFragment
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight()
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
>= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class OrderByBottomSheetDialogFragment extends BottomSheetDialogFragment
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight()
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
>= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, night,
|
AndroidUtils.setBackground(getActivity(), mainView, night,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -650,7 +650,7 @@ public class PlanRouteFragment extends Fragment implements OsmAndLocationListene
|
||||||
if (mapActivity != null) {
|
if (mapActivity != null) {
|
||||||
final ImageButton appModesBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
final ImageButton appModesBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
||||||
appModesBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
appModesBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
||||||
appModesBtn.setImageDrawable(getActiveIcon(planRouteContext.getSnappedMode().getSmallIconDark()));
|
appModesBtn.setImageDrawable(getActiveIcon(planRouteContext.getSnappedMode().getMapIconId()));
|
||||||
appModesBtn.setOnClickListener(new View.OnClickListener() {
|
appModesBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class PlanRouteOptionsBottomSheetDialogFragment extends BottomSheetDialog
|
||||||
((TextView) mainView.findViewById(R.id.title)).setTextColor(ContextCompat.getColor(getActivity(), R.color.ctx_menu_info_text_dark));
|
((TextView) mainView.findViewById(R.id.title)).setTextColor(ContextCompat.getColor(getActivity(), R.color.ctx_menu_info_text_dark));
|
||||||
}
|
}
|
||||||
|
|
||||||
((ImageView) mainView.findViewById(R.id.navigate_icon)).setImageDrawable(getContentIcon(R.drawable.map_directions));
|
((ImageView) mainView.findViewById(R.id.navigate_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_gdirections_dark));
|
||||||
((ImageView) mainView.findViewById(R.id.make_round_trip_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_trip_round));
|
((ImageView) mainView.findViewById(R.id.make_round_trip_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_trip_round));
|
||||||
((ImageView) mainView.findViewById(R.id.door_to_door_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_sort_door_to_door));
|
((ImageView) mainView.findViewById(R.id.door_to_door_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_sort_door_to_door));
|
||||||
((ImageView) mainView.findViewById(R.id.reverse_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_sort_reverse_order));
|
((ImageView) mainView.findViewById(R.id.reverse_icon)).setImageDrawable(getContentIcon(R.drawable.ic_action_sort_reverse_order));
|
||||||
|
@ -141,7 +141,7 @@ public class PlanRouteOptionsBottomSheetDialogFragment extends BottomSheetDialog
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight() >= AndroidUtils.dpToPx(getActivity(), 8)) {
|
if (screenHeight - statusBarHeight - mainView.getHeight() >= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, night,
|
AndroidUtils.setBackground(getActivity(), mainView, night,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -0,0 +1,165 @@
|
||||||
|
package net.osmand.plus.mapmarkers;
|
||||||
|
|
||||||
|
import android.app.Dialog;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.os.Build;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.support.annotation.Nullable;
|
||||||
|
import android.support.v4.app.Fragment;
|
||||||
|
import android.support.v4.app.FragmentManager;
|
||||||
|
import android.view.ContextThemeWrapper;
|
||||||
|
import android.view.Gravity;
|
||||||
|
import android.view.LayoutInflater;
|
||||||
|
import android.view.View;
|
||||||
|
import android.view.ViewGroup;
|
||||||
|
import android.view.ViewTreeObserver;
|
||||||
|
import android.view.Window;
|
||||||
|
import android.view.WindowManager;
|
||||||
|
import android.view.inputmethod.InputMethodManager;
|
||||||
|
import android.widget.EditText;
|
||||||
|
import android.widget.LinearLayout;
|
||||||
|
|
||||||
|
import net.osmand.AndroidUtils;
|
||||||
|
import net.osmand.plus.MapMarkersHelper.MapMarker;
|
||||||
|
import net.osmand.plus.OsmandTextFieldBoxes;
|
||||||
|
import net.osmand.plus.R;
|
||||||
|
import net.osmand.plus.activities.MapActivity;
|
||||||
|
import net.osmand.plus.base.BottomSheetDialogFragment;
|
||||||
|
import net.osmand.plus.helpers.AndroidUiHelper;
|
||||||
|
|
||||||
|
public class RenameMarkerBottomSheetDialogFragment extends BottomSheetDialogFragment {
|
||||||
|
|
||||||
|
public final static String TAG = "RenameMarkerBottomSheetDialogFragment";
|
||||||
|
|
||||||
|
private MapMarker marker;
|
||||||
|
|
||||||
|
public void setMarker(MapMarker marker) {
|
||||||
|
this.marker = marker;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
|
final MapActivity mapActivity = (MapActivity) getActivity();
|
||||||
|
final boolean portrait = AndroidUiHelper.isOrientationPortrait(getActivity());
|
||||||
|
final boolean nightMode = mapActivity.getMyApplication().getDaynightHelper().isNightModeForMapControls();
|
||||||
|
final int themeRes = nightMode ? R.style.OsmandDarkTheme : R.style.OsmandLightTheme;
|
||||||
|
|
||||||
|
final View mainView = View.inflate(new ContextThemeWrapper(getContext(), themeRes), R.layout.fragment_rename_marker_bottom_sheet_dialog, container);
|
||||||
|
|
||||||
|
LinearLayout contentLayout = (LinearLayout) mainView.findViewById(R.id.content_linear_layout);
|
||||||
|
int layoutRes = Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH
|
||||||
|
? R.layout.markers_track_name_text_field_box
|
||||||
|
: R.layout.markers_track_name_edit_text;
|
||||||
|
contentLayout.addView(getLayoutInflater().inflate(layoutRes, contentLayout, false), 1);
|
||||||
|
|
||||||
|
if (portrait) {
|
||||||
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode, R.drawable.bg_bottom_menu_light, R.drawable.bg_bottom_menu_dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
final EditText nameEditText = (EditText) mainView.findViewById(R.id.name_edit_text);
|
||||||
|
nameEditText.setText(marker.getName(mapActivity));
|
||||||
|
nameEditText.requestFocus();
|
||||||
|
final InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, InputMethodManager.HIDE_IMPLICIT_ONLY);
|
||||||
|
View textBox = mainView.findViewById(R.id.name_text_box);
|
||||||
|
if (textBox instanceof OsmandTextFieldBoxes) {
|
||||||
|
((OsmandTextFieldBoxes) textBox).activate(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
mainView.findViewById(R.id.save_button).setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
String name = nameEditText.getText().toString();
|
||||||
|
if (name.replaceAll("\\s", "").length() > 0) {
|
||||||
|
marker.setName(name);
|
||||||
|
mapActivity.getMyApplication().getMapMarkersHelper().updateMapMarker(marker, true);
|
||||||
|
FragmentManager fm = mapActivity.getSupportFragmentManager();
|
||||||
|
Fragment fragment = fm.findFragmentByTag(MarkerMenuOnMapFragment.TAG);
|
||||||
|
if (fragment != null) {
|
||||||
|
((MarkerMenuOnMapFragment) fragment).dismiss();
|
||||||
|
}
|
||||||
|
dismiss();
|
||||||
|
} else {
|
||||||
|
nameEditText.setError(getString(R.string.wrong_input));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
mainView.findViewById(R.id.close_button).setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
final int screenHeight = AndroidUtils.getScreenHeight(getActivity());
|
||||||
|
final int statusBarHeight = AndroidUtils.getStatusBarHeight(getActivity());
|
||||||
|
final int navBarHeight = AndroidUtils.getNavBarHeight(getActivity());
|
||||||
|
|
||||||
|
mainView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||||
|
|
||||||
|
boolean dimensSet;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onGlobalLayout() {
|
||||||
|
if (!dimensSet) {
|
||||||
|
final View scrollView = mainView.findViewById(R.id.rename_marker_scroll_view);
|
||||||
|
int scrollViewHeight = scrollView.getHeight();
|
||||||
|
int dividerHeight = AndroidUtils.dpToPx(getContext(), 1);
|
||||||
|
int cancelButtonHeight = getContext().getResources().getDimensionPixelSize(R.dimen.bottom_sheet_cancel_button_height);
|
||||||
|
int spaceForScrollView = screenHeight - statusBarHeight - navBarHeight - dividerHeight - cancelButtonHeight;
|
||||||
|
if (scrollViewHeight > spaceForScrollView) {
|
||||||
|
scrollView.getLayoutParams().height = spaceForScrollView;
|
||||||
|
scrollView.requestLayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!portrait) {
|
||||||
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
|
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
||||||
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
||||||
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
|
} else {
|
||||||
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
||||||
|
R.drawable.bg_bottom_sheet_sides_landscape_light, R.drawable.bg_bottom_sheet_sides_landscape_dark);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dimensSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
final Window window = getDialog().getWindow();
|
||||||
|
WindowManager.LayoutParams params = window.getAttributes();
|
||||||
|
params.height = ViewGroup.LayoutParams.WRAP_CONTENT;
|
||||||
|
params.gravity = Gravity.BOTTOM;
|
||||||
|
window.setAttributes(params);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return mainView;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
if (!AndroidUiHelper.isOrientationPortrait(getActivity())) {
|
||||||
|
final Window window = getDialog().getWindow();
|
||||||
|
WindowManager.LayoutParams params = window.getAttributes();
|
||||||
|
params.width = getActivity().getResources().getDimensionPixelSize(R.dimen.landscape_bottom_sheet_dialog_fragment_width);
|
||||||
|
window.setAttributes(params);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroyView() {
|
||||||
|
View view = getView();
|
||||||
|
if (view != null) {
|
||||||
|
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
||||||
|
}
|
||||||
|
Dialog dialog = getDialog();
|
||||||
|
if (dialog != null && getRetainInstance()) {
|
||||||
|
dialog.setDismissMessage(null);
|
||||||
|
}
|
||||||
|
super.onDestroyView();
|
||||||
|
}
|
||||||
|
}
|
|
@ -120,7 +120,7 @@ public class SaveAsTrackBottomSheetDialogFragment extends BottomSheetDialogFragm
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight()
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
>= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -161,7 +161,7 @@ public class ShowDirectionBottomSheetDialogFragment extends BottomSheetDialogFra
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight()
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
>= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, night,
|
AndroidUtils.setBackground(getActivity(), mainView, night,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -12,9 +12,9 @@ import android.widget.TextView;
|
||||||
|
|
||||||
import net.osmand.data.LatLon;
|
import net.osmand.data.LatLon;
|
||||||
import net.osmand.plus.IconsCache;
|
import net.osmand.plus.IconsCache;
|
||||||
|
import net.osmand.plus.MapMarkersHelper.GroupHeader;
|
||||||
import net.osmand.plus.MapMarkersHelper.MapMarker;
|
import net.osmand.plus.MapMarkersHelper.MapMarker;
|
||||||
import net.osmand.plus.MapMarkersHelper.MapMarkersGroup;
|
import net.osmand.plus.MapMarkersHelper.MapMarkersGroup;
|
||||||
import net.osmand.plus.MapMarkersHelper.GroupHeader;
|
|
||||||
import net.osmand.plus.MapMarkersHelper.ShowHideHistoryButton;
|
import net.osmand.plus.MapMarkersHelper.ShowHideHistoryButton;
|
||||||
import net.osmand.plus.OsmandApplication;
|
import net.osmand.plus.OsmandApplication;
|
||||||
import net.osmand.plus.OsmandSettings;
|
import net.osmand.plus.OsmandSettings;
|
||||||
|
@ -52,6 +52,12 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||||
private List<MapMarker> showDirectionMarkers;
|
private List<MapMarker> showDirectionMarkers;
|
||||||
private Snackbar snackbar;
|
private Snackbar snackbar;
|
||||||
|
|
||||||
|
private MapMarkersGroupsAdapterListener listener;
|
||||||
|
|
||||||
|
public void setListener(MapMarkersGroupsAdapterListener listener) {
|
||||||
|
this.listener = listener;
|
||||||
|
}
|
||||||
|
|
||||||
public MapMarkersGroupsAdapter(MapActivity mapActivity) {
|
public MapMarkersGroupsAdapter(MapActivity mapActivity) {
|
||||||
this.mapActivity = mapActivity;
|
this.mapActivity = mapActivity;
|
||||||
app = mapActivity.getMyApplication();
|
app = mapActivity.getMyApplication();
|
||||||
|
@ -151,7 +157,12 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||||
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
|
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
|
||||||
if (viewType == MARKER_TYPE) {
|
if (viewType == MARKER_TYPE) {
|
||||||
View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.map_marker_item_new, viewGroup, false);
|
View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.map_marker_item_new, viewGroup, false);
|
||||||
view.setClickable(true);
|
view.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
listener.onItemClick(view);
|
||||||
|
}
|
||||||
|
});
|
||||||
return new MapMarkerItemViewHolder(view);
|
return new MapMarkerItemViewHolder(view);
|
||||||
} else if (viewType == HEADER_TYPE) {
|
} else if (viewType == HEADER_TYPE) {
|
||||||
View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.map_marker_item_header, viewGroup, false);
|
View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.map_marker_item_header, viewGroup, false);
|
||||||
|
@ -477,4 +488,9 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||||
}
|
}
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public interface MapMarkersGroupsAdapterListener {
|
||||||
|
|
||||||
|
void onItemClick(View view);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,12 @@ public class MapMarkersItemTouchHelperCallback extends ItemTouchHelper.Callback
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder source, RecyclerView.ViewHolder target) {
|
public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder source, RecyclerView.ViewHolder target) {
|
||||||
return adapter.onItemMove(source.getAdapterPosition(), target.getAdapterPosition());
|
int from = source.getAdapterPosition();
|
||||||
|
int to = target.getAdapterPosition();
|
||||||
|
if (from == RecyclerView.NO_POSITION || to == RecyclerView.NO_POSITION) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return adapter.onItemMove(from, to);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -754,7 +754,7 @@ public class MeasurementToolFragment extends Fragment {
|
||||||
|
|
||||||
ImageButton snapToRoadBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
ImageButton snapToRoadBtn = (ImageButton) mapActivity.findViewById(R.id.snap_to_road_image_button);
|
||||||
snapToRoadBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
snapToRoadBtn.setBackgroundResource(nightMode ? R.drawable.btn_circle_night : R.drawable.btn_circle);
|
||||||
snapToRoadBtn.setImageDrawable(getActiveIcon(appMode.getSmallIconDark()));
|
snapToRoadBtn.setImageDrawable(getActiveIcon(appMode.getMapIconId()));
|
||||||
snapToRoadBtn.setOnClickListener(new View.OnClickListener() {
|
snapToRoadBtn.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
|
|
@ -150,7 +150,7 @@ public class OptionsBottomSheetDialogFragment extends BottomSheetDialogFragment
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight()
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
>= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -176,7 +176,7 @@ public class SelectedPointBottomSheetDialogFragment extends BottomSheetDialogFra
|
||||||
|
|
||||||
if (!portrait) {
|
if (!portrait) {
|
||||||
if (screenHeight - statusBarHeight - mainView.getHeight()
|
if (screenHeight - statusBarHeight - mainView.getHeight()
|
||||||
>= AndroidUtils.dpToPx(getActivity(), 8)) {
|
>= getResources().getDimension(R.dimen.bottom_sheet_content_padding_small)) {
|
||||||
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
AndroidUtils.setBackground(getActivity(), mainView, nightMode,
|
||||||
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
R.drawable.bg_bottom_sheet_topsides_landscape_light, R.drawable.bg_bottom_sheet_topsides_landscape_dark);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue