OsmAnd/OsmAnd/res/layout/map_context_menu_fragment.xml

639 lines
31 KiB
XML
Raw Normal View History

2015-09-04 18:29:28 +02:00
<?xml version="1.0" encoding="utf-8"?>
2015-09-11 18:13:40 +02:00
<FrameLayout
2015-09-10 15:50:47 +02:00
android:id="@+id/context_menu_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
2015-11-13 17:39:34 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-12-06 17:38:26 +01:00
android:background="@android:color/transparent"
xmlns:osmand="http://schemas.android.com/apk/res-auto">
2015-09-04 18:29:28 +02:00
<LinearLayout
android:id="@+id/context_menu_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
2015-09-04 18:29:28 +02:00
android:orientation="vertical">
2015-09-10 15:50:47 +02:00
<LinearLayout
2015-09-11 10:06:04 +02:00
android:id="@+id/context_menu_top_shadow_all"
android:layout_width="match_parent"
2015-09-10 15:50:47 +02:00
android:layout_height="wrap_content"
android:clickable="true"
2015-09-10 15:50:47 +02:00
android:background="?attr/bg_map_context_menu"
android:orientation="vertical">
2015-09-04 18:29:28 +02:00
<LinearLayout
2015-09-10 15:50:47 +02:00
android:id="@+id/context_menu_top_view"
android:layout_width="match_parent"
2015-09-04 18:29:28 +02:00
android:layout_height="wrap_content"
2017-12-04 13:05:26 +01:00
android:paddingLeft="@dimen/context_menu_padding_margin_default"
android:paddingRight="@dimen/context_menu_padding_margin_default"
2015-09-10 15:50:47 +02:00
android:orientation="horizontal">
<LinearLayout
2017-12-19 13:21:10 +01:00
android:layout_marginTop="@dimen/context_menu_first_line_top_margin"
2017-12-04 13:05:26 +01:00
android:layout_marginRight="@dimen/context_menu_padding_margin_default"
android:layout_marginEnd="@dimen/context_menu_padding_margin_default"
android:layout_width="0dp"
android:layout_weight="1"
2015-09-04 18:29:28 +02:00
android:layout_height="wrap_content"
2015-09-10 15:50:47 +02:00
android:orientation="vertical">
2017-12-04 13:05:26 +01:00
<TextView
android:id="@+id/context_menu_line1"
android:layout_width="wrap_content"
2015-09-10 15:50:47 +02:00
android:layout_height="wrap_content"
2017-12-04 13:05:26 +01:00
android:text="@string/search_address_building"
style="@style/TextAppearance.ContextMenuTitle"/>
2015-11-08 17:45:37 +01:00
2017-12-04 13:05:26 +01:00
<LinearLayout
2017-12-08 16:19:06 +01:00
android:layout_marginTop="@dimen/context_menu_subtitle_margin"
2017-12-04 13:05:26 +01:00
android:id="@+id/context_menu_line2_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/context_menu_line2"
android:layout_width="wrap_content"
2015-11-08 17:45:37 +01:00
android:layout_height="wrap_content"
2017-12-04 13:05:26 +01:00
android:layout_gravity="center_vertical"
android:text="@string/amenity_type_finance"
style="@style/TextAppearance.ContextMenuSubtitle"/>
2015-11-08 17:45:37 +01:00
2017-12-04 13:05:26 +01:00
</LinearLayout>
2015-11-08 17:45:37 +01:00
2017-12-04 13:05:26 +01:00
</LinearLayout>
2015-11-08 17:45:37 +01:00
2017-12-04 13:05:26 +01:00
<ImageView
android:id="@+id/context_menu_icon_view"
android:layout_width="@dimen/map_widget_icon"
android:layout_height="@dimen/map_widget_icon"
android:layout_marginTop="@dimen/context_menu_padding_margin_default"
android:src="@drawable/ic_action_building_number"/>
2015-11-08 17:45:37 +01:00
2017-12-04 13:05:26 +01:00
</LinearLayout>
2015-11-08 17:45:37 +01:00
2017-12-11 15:05:04 +01:00
<GridView
android:id="@+id/transport_stop_routes_grid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-12-15 10:03:26 +01:00
android:columnWidth="@dimen/context_menu_transport_grid_item_width"
android:horizontalSpacing="@dimen/context_menu_transport_grid_spacing"
android:numColumns="auto_fit"
android:paddingLeft="@dimen/context_menu_padding_margin_default"
android:paddingRight="@dimen/context_menu_padding_margin_default"
2017-12-15 10:58:16 +01:00
android:paddingTop="@dimen/context_menu_transport_padding_top"
android:paddingBottom="@dimen/context_menu_transport_grid_spacing"
2017-12-15 10:03:26 +01:00
android:verticalSpacing="@dimen/context_menu_transport_grid_spacing"
android:visibility="gone"/>
2017-12-11 15:05:04 +01:00
2017-12-04 13:05:26 +01:00
<LinearLayout
android:paddingLeft="@dimen/context_menu_padding_margin_default"
android:paddingRight="@dimen/context_menu_padding_margin_default"
2017-12-12 09:34:37 +01:00
android:layout_marginTop="@dimen/context_menu_padding_margin_tiny"
2017-12-08 16:19:06 +01:00
android:layout_marginBottom="@dimen/context_menu_direction_margin"
2017-12-04 13:05:26 +01:00
android:gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="@dimen/context_menu_sub_info_height"
android:orientation="horizontal">
2015-11-08 17:45:37 +01:00
2017-12-21 14:48:13 +01:00
<net.osmand.plus.widgets.TextViewEx
2017-12-15 13:48:35 +01:00
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
android:layout_marginEnd="@dimen/context_menu_padding_margin_small"
tools:text="Museum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/context_menu_line3"
2017-12-21 14:48:13 +01:00
osmand:typeface="@string/font_roboto_medium"
2017-12-15 13:48:35 +01:00
style="@style/TextAppearance.ContextMenuSubtitle"/>
2017-12-08 14:12:54 +01:00
<TextView
2017-12-12 14:07:26 +01:00
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
android:layout_marginEnd="@dimen/context_menu_padding_margin_small"
2017-12-08 14:12:54 +01:00
tools:text="Closed till 10:00"
android:id="@+id/additional_info_text_view"
2017-12-04 13:05:26 +01:00
android:layout_width="wrap_content"
2017-12-08 14:12:54 +01:00
android:layout_height="wrap_content"/>
2017-12-07 12:12:20 +01:00
2017-12-04 13:05:26 +01:00
<LinearLayout
android:id="@+id/compass_layout"
android:layout_width="wrap_content"
2017-12-15 10:58:16 +01:00
android:layout_height="wrap_content"
2017-12-04 13:05:26 +01:00
android:orientation="horizontal">
<ImageView
tools:src="@drawable/ic_direction_arrow"
android:id="@+id/direction"
android:layout_width="@dimen/directionIconSize"
android:layout_height="@dimen/directionIconSize"
android:layout_marginTop="1sp"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="2dp"
android:layout_marginStart="2dp"
2017-12-06 16:42:13 +01:00
tools:textColor="?android:textColorSecondary"
2017-12-04 13:05:26 +01:00
android:textSize="@dimen/default_desc_text_size"
tools:text="100500 km"/>
2015-11-04 13:07:00 +01:00
2015-09-10 15:50:47 +02:00
</LinearLayout>
2015-09-08 14:32:42 +02:00
</LinearLayout>
<LinearLayout
android:id="@+id/title_button_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2015-11-04 13:07:00 +01:00
android:clickable="true"
android:orientation="horizontal"
2017-12-04 13:05:26 +01:00
android:paddingBottom="@dimen/context_menu_padding_margin_small"
2015-11-13 17:39:34 +01:00
android:visibility="gone"
tools:visibility="visible">
<LinearLayout
2017-12-04 13:05:26 +01:00
android:layout_marginLeft="@dimen/context_menu_padding_margin_small"
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
android:id="@+id/title_button_view"
2017-12-27 12:12:40 +01:00
tools:background="?attr/ctx_menu_controller_bg"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="@dimen/context_menu_controller_height"
android:orientation="horizontal">
2017-12-08 14:26:02 +01:00
<net.osmand.plus.widgets.TextViewEx
osmand:typeface="@string/font_roboto_medium"
android:id="@+id/title_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@null"
android:gravity="center_vertical"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
android:textAllCaps="true"
android:text="@string/recording_context_menu_play"
2017-12-27 12:12:40 +01:00
tools:textColor="?attr/ctx_menu_controller_text_color"
android:textSize="@dimen/default_desc_text_size"/>
<TextView
android:id="@+id/title_button_right_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"
tools:text="— 00:26"/>
</LinearLayout>
<LinearLayout
2017-12-04 13:05:26 +01:00
android:layout_marginLeft="@dimen/context_menu_padding_margin_small"
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
android:id="@+id/title_button_right_view"
2017-12-27 12:12:40 +01:00
tools:background="?attr/ctx_menu_controller_bg"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="@dimen/context_menu_controller_height"
android:orientation="horizontal">
2017-12-08 14:26:02 +01:00
<net.osmand.plus.widgets.TextViewEx
osmand:typeface="@string/font_roboto_medium"
android:textAllCaps="true"
android:id="@+id/title_button_right"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@null"
android:gravity="center_vertical"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
android:text="@string/shared_string_delete"
2017-12-27 12:12:40 +01:00
tools:textColor="?attr/ctx_menu_controller_text_color"
android:textSize="@dimen/default_desc_text_size"/>
</LinearLayout>
2015-11-04 13:07:00 +01:00
</LinearLayout>
<LinearLayout
android:id="@+id/download_buttons_container"
2017-11-29 14:32:54 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
2017-11-29 15:04:00 +01:00
android:orientation="horizontal"
2017-12-04 13:05:26 +01:00
android:paddingBottom="@dimen/context_menu_padding_margin_small"
android:visibility="gone"
tools:visibility="visible">
<LinearLayout
2017-11-29 15:04:00 +01:00
android:id="@+id/download_button_left_view"
2017-12-27 12:12:40 +01:00
tools:background="?attr/ctx_menu_controller_bg"
2017-12-04 13:05:26 +01:00
android:layout_marginLeft="@dimen/context_menu_padding_margin_small"
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
2017-11-29 15:04:00 +01:00
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="@dimen/context_menu_controller_height">
2017-12-08 14:26:02 +01:00
<net.osmand.plus.widgets.TextViewEx
osmand:typeface="@string/font_roboto_medium"
2017-11-29 15:04:00 +01:00
android:textAllCaps="true"
android:id="@+id/download_button_left"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@null"
android:gravity="center_vertical"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
android:text="@string/shared_string_download"
2017-12-27 12:12:40 +01:00
tools:textColor="?attr/ctx_menu_controller_text_color"
2017-11-29 15:04:00 +01:00
android:textSize="@dimen/default_desc_text_size"/>
2017-11-29 15:04:00 +01:00
</LinearLayout>
2017-11-29 14:32:54 +01:00
2017-11-29 15:04:00 +01:00
<LinearLayout
android:id="@+id/download_button_right_view"
2017-12-27 12:12:40 +01:00
tools:background="?attr/ctx_menu_controller_bg"
2017-12-04 13:05:26 +01:00
android:layout_marginLeft="@dimen/context_menu_padding_margin_small"
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
2017-11-29 15:04:00 +01:00
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="@dimen/context_menu_controller_height">
2017-11-29 14:32:54 +01:00
2017-12-08 14:26:02 +01:00
<net.osmand.plus.widgets.TextViewEx
osmand:typeface="@string/font_roboto_medium"
2017-11-29 15:04:00 +01:00
android:textAllCaps="true"
android:id="@+id/download_button_right"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@null"
android:gravity="center_vertical"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
android:text="@string/shared_string_others"
2017-12-27 12:12:40 +01:00
tools:textColor="?attr/ctx_menu_controller_text_color"
2017-11-29 15:04:00 +01:00
android:textSize="@dimen/default_desc_text_size"/>
</LinearLayout>
</LinearLayout>
2017-12-04 10:32:36 +01:00
<LinearLayout
2017-12-20 13:13:10 +01:00
android:id="@+id/title_bottom_button_container"
2017-12-04 10:32:36 +01:00
android:layout_width="match_parent"
2017-12-20 13:13:10 +01:00
android:layout_height="wrap_content"
android:clickable="true"
android:orientation="horizontal"
android:paddingBottom="@dimen/context_menu_padding_margin_small"
android:visibility="gone"
tools:visibility="visible">
2017-12-04 10:32:36 +01:00
2017-12-20 13:13:10 +01:00
<LinearLayout
android:id="@+id/title_button_bottom_view"
android:layout_width="0dp"
android:layout_height="@dimen/context_menu_controller_height"
android:layout_marginLeft="@dimen/context_menu_padding_margin_small"
android:layout_marginRight="@dimen/context_menu_padding_margin_small"
android:layout_weight="1"
2017-12-27 12:12:40 +01:00
tools:background="?attr/ctx_menu_controller_bg">
2017-12-20 13:13:10 +01:00
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/title_button_bottom"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@null"
android:gravity="center_vertical"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
android:text="@string/shared_string_delete"
2017-12-20 13:13:10 +01:00
android:textAllCaps="true"
2017-12-27 12:12:40 +01:00
tools:textColor="?attr/ctx_menu_controller_text_color"
2017-12-20 13:13:10 +01:00
android:textSize="@dimen/default_desc_text_size"
osmand:typeface="@string/font_roboto_medium"/>
</LinearLayout>
2017-12-04 10:32:36 +01:00
</LinearLayout>
2015-11-05 10:39:36 +01:00
<LinearLayout
android:id="@+id/title_progress_container"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:clickable="true"
2015-11-13 17:39:34 +01:00
android:gravity="center_vertical"
2016-08-01 15:08:39 +02:00
android:minHeight="@dimen/context_menu_action_buttons_h"
2015-11-05 10:39:36 +01:00
android:orientation="horizontal"
2017-12-04 13:05:26 +01:00
android:paddingBottom="@dimen/context_menu_padding_margin_small"
2017-11-29 14:39:42 +01:00
android:paddingLeft="@dimen/context_menu_progress_padding_left"
android:paddingStart="@dimen/context_menu_progress_padding_left"
android:paddingRight="@dimen/context_menu_progress_padding_right"
android:paddingEnd="@dimen/context_menu_progress_padding_right"
2015-11-13 17:39:34 +01:00
android:visibility="gone"
tools:visibility="visible">
2015-11-05 10:39:36 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
2015-11-13 17:39:34 +01:00
android:layout_marginRight="12dp"
android:layout_weight="1"
android:orientation="vertical">
2015-11-05 10:39:36 +01:00
<TextView
android:id="@+id/progressTitle"
2015-11-05 10:39:36 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:visibility="visible"
tools:text="@string/shared_string_downloading"/>
2015-11-05 10:39:36 +01:00
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible"/>
</LinearLayout>
<ImageView
android:id="@+id/progressButton"
android:contentDescription="@string/shared_string_close"
android:layout_width="@dimen/context_menu_progress_cancel_button_size"
android:layout_height="@dimen/context_menu_progress_cancel_button_size"
2015-11-05 10:39:36 +01:00
android:layout_gravity="center_vertical"
2015-11-19 18:17:51 +01:00
android:background="?attr/selectableItemBackground"
2015-11-05 10:39:36 +01:00
android:scaleType="center"
tools:src="@drawable/map_action_cancel"/>
2015-11-05 10:39:36 +01:00
</LinearLayout>
</LinearLayout>
2015-09-04 18:29:28 +02:00
<View
2015-11-02 11:10:24 +01:00
android:id="@+id/buttons_top_border"
2015-09-10 15:50:47 +02:00
android:layout_width="match_parent"
android:layout_height="1dp"
2017-12-06 17:38:26 +01:00
android:background="?attr/ctx_menu_divider"/>
2015-09-04 18:29:28 +02:00
2015-09-10 15:50:47 +02:00
<LinearLayout
2017-12-29 15:09:38 +01:00
android:paddingLeft="@dimen/map_widget_icon_margin"
android:paddingRight="@dimen/map_widget_icon_margin"
2015-09-10 15:50:47 +02:00
android:id="@+id/context_menu_buttons"
android:layout_width="match_parent"
2017-12-13 21:46:50 +01:00
android:layout_height="wrap_content"
2017-11-28 17:15:08 +01:00
android:orientation="horizontal">
2015-09-10 15:50:47 +02:00
2017-11-28 17:15:08 +01:00
<LinearLayout
2017-12-07 12:42:00 +01:00
android:background="?selectableItemBackground"
2017-11-28 17:15:08 +01:00
android:clickable="true"
android:id="@+id/context_menu_fav_view"
android:gravity="center"
android:layout_width="0dp"
2015-09-10 15:50:47 +02:00
android:layout_weight="1"
2017-11-28 17:15:08 +01:00
android:layout_height="wrap_content"
android:orientation="vertical"
2017-12-12 09:32:18 +01:00
android:paddingTop="@dimen/context_menu_main_actions_padding_top"
2017-12-19 13:21:10 +01:00
android:paddingBottom="@dimen/context_menu_main_actions_padding_bottom">
2015-09-10 15:50:47 +02:00
2017-11-28 17:15:08 +01:00
<ImageView
2017-12-14 12:54:30 +01:00
android:layout_marginBottom="@dimen/context_menu_main_actions_icon_margin"
2017-11-28 17:15:08 +01:00
android:id="@+id/context_menu_fav_image_view"
android:contentDescription="@string/shared_string_add_to_favorites"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:src="@drawable/map_action_fav_dark"/>
2017-12-06 17:38:26 +01:00
<net.osmand.plus.widgets.TextViewEx
2017-12-07 12:17:56 +01:00
android:maxLines="1"
android:ellipsize="end"
2017-11-28 17:25:39 +01:00
android:id="@+id/context_menu_fav_text_view"
2017-11-28 17:15:08 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-12-07 12:17:56 +01:00
tools:text="@string/shared_string_add"
2017-12-06 17:38:26 +01:00
android:textColor="@color/ctx_menu_buttons_text_color"
2017-12-08 14:26:02 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-12-06 17:38:26 +01:00
osmand:typeface="@string/font_roboto_regular"/>
2017-11-28 17:15:08 +01:00
</LinearLayout>
<LinearLayout
2017-12-07 12:42:00 +01:00
android:background="?selectableItemBackground"
2017-11-28 17:15:08 +01:00
android:clickable="true"
android:id="@+id/context_menu_route_view"
android:gravity="center"
android:layout_width="0dp"
2015-09-10 15:50:47 +02:00
android:layout_weight="1"
2017-11-28 17:15:08 +01:00
android:layout_height="wrap_content"
android:orientation="vertical"
2017-12-12 11:43:39 +01:00
android:paddingTop="@dimen/context_menu_main_actions_padding_top"
2017-12-19 13:21:10 +01:00
android:paddingBottom="@dimen/context_menu_main_actions_padding_bottom">
2015-09-10 15:50:47 +02:00
2017-11-28 17:15:08 +01:00
<ImageView
2017-12-14 12:54:30 +01:00
android:layout_marginBottom="@dimen/context_menu_main_actions_icon_margin"
2017-11-28 17:15:08 +01:00
android:id="@+id/context_menu_route_image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:src="@drawable/map_action_flag_dark"/>
2017-12-06 17:38:26 +01:00
<net.osmand.plus.widgets.TextViewEx
2017-12-07 12:17:56 +01:00
android:maxLines="1"
android:ellipsize="end"
2017-11-28 17:25:39 +01:00
android:id="@+id/context_menu_route_text_view"
2017-11-28 17:15:08 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-12-06 17:38:26 +01:00
android:text="@string/shared_string_marker"
android:textColor="@color/ctx_menu_buttons_text_color"
2017-12-08 14:26:02 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-12-06 17:38:26 +01:00
osmand:typeface="@string/font_roboto_regular"/>
2017-11-28 17:15:08 +01:00
</LinearLayout>
<LinearLayout
2017-12-07 12:42:00 +01:00
android:background="?selectableItemBackground"
2017-11-28 17:15:08 +01:00
android:clickable="true"
android:id="@+id/context_menu_share_view"
android:gravity="center"
android:layout_width="0dp"
2015-09-10 15:50:47 +02:00
android:layout_weight="1"
2017-11-28 17:15:08 +01:00
android:layout_height="wrap_content"
android:orientation="vertical"
2017-12-12 11:43:39 +01:00
android:paddingTop="@dimen/context_menu_main_actions_padding_top"
2017-12-19 13:21:10 +01:00
android:paddingBottom="@dimen/context_menu_main_actions_padding_bottom">
2015-09-10 15:50:47 +02:00
2017-11-28 17:15:08 +01:00
<ImageView
2017-12-14 12:54:30 +01:00
android:layout_marginBottom="@dimen/context_menu_main_actions_icon_margin"
2017-11-28 17:15:08 +01:00
android:id="@+id/context_menu_share_image_view"
android:contentDescription="@string/context_menu_item_share_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:src="@drawable/map_action_gshare_dark"/>
2017-12-06 17:38:26 +01:00
<net.osmand.plus.widgets.TextViewEx
2017-12-07 12:17:56 +01:00
android:maxLines="1"
android:ellipsize="end"
2017-11-28 17:25:39 +01:00
android:id="@+id/context_menu_share_text_view"
2017-11-28 17:15:08 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-12-06 17:38:26 +01:00
android:text="@string/shared_string_share"
android:textColor="@color/ctx_menu_buttons_text_color"
2017-12-08 14:26:02 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-12-06 17:38:26 +01:00
osmand:typeface="@string/font_roboto_regular"/>
2017-11-28 17:15:08 +01:00
</LinearLayout>
<LinearLayout
2017-12-07 12:42:00 +01:00
android:background="?selectableItemBackground"
2017-11-28 17:15:08 +01:00
android:clickable="true"
android:id="@+id/context_menu_more_view"
android:gravity="center"
android:layout_width="0dp"
2015-09-10 15:50:47 +02:00
android:layout_weight="1"
2017-11-28 17:15:08 +01:00
android:layout_height="wrap_content"
android:orientation="vertical"
2017-12-12 11:43:39 +01:00
android:paddingTop="@dimen/context_menu_main_actions_padding_top"
2017-12-19 13:21:10 +01:00
android:paddingBottom="@dimen/context_menu_main_actions_padding_bottom">
2017-11-28 17:15:08 +01:00
<ImageView
2017-12-14 12:54:30 +01:00
android:layout_marginBottom="@dimen/context_menu_main_actions_icon_margin"
2017-11-28 17:15:08 +01:00
android:id="@+id/context_menu_more_image_view"
android:contentDescription="@string/shared_string_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center"
android:src="@drawable/map_overflow_menu_white"/>
2017-12-06 17:38:26 +01:00
<net.osmand.plus.widgets.TextViewEx
2017-12-07 12:17:56 +01:00
android:maxLines="1"
android:ellipsize="end"
2017-11-28 17:25:39 +01:00
android:id="@+id/context_menu_more_text_view"
2017-11-28 17:15:08 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-12-06 17:38:26 +01:00
android:text="@string/shared_string_actions"
android:textColor="@color/ctx_menu_buttons_text_color"
2017-12-08 14:26:02 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-12-06 17:38:26 +01:00
osmand:typeface="@string/font_roboto_regular"/>
2017-11-28 17:15:08 +01:00
</LinearLayout>
2015-09-04 18:29:28 +02:00
2015-09-10 15:50:47 +02:00
</LinearLayout>
2015-09-04 18:29:28 +02:00
2017-11-28 15:36:20 +01:00
<View
android:id="@+id/buttons_bottom_border"
android:layout_width="match_parent"
android:layout_height="1dp"
2017-12-06 17:38:26 +01:00
android:background="?attr/ctx_menu_divider"/>
2017-11-28 15:36:20 +01:00
<LinearLayout
2017-11-28 16:04:19 +01:00
android:id="@+id/context_menu_bottom_buttons"
2017-11-28 15:36:20 +01:00
android:layout_width="match_parent"
2017-12-07 12:26:34 +01:00
android:layout_height="@dimen/context_menu_buttons_bottom_height">
2017-11-28 15:36:20 +01:00
2017-12-06 17:38:26 +01:00
<net.osmand.plus.widgets.TextViewEx
android:textAllCaps="true"
2017-11-28 15:36:20 +01:00
android:background="?attr/selectableItemBackground"
android:id="@+id/context_menu_details_button"
android:layout_width="0dp"
android:layout_weight="1"
2017-12-06 17:38:26 +01:00
android:layout_height="match_parent"
2017-12-07 12:26:34 +01:00
android:paddingLeft="@dimen/context_menu_padding_margin_default"
android:paddingRight="@dimen/context_menu_padding_margin_default"
2017-11-28 15:36:20 +01:00
android:gravity="start|center_vertical"
2017-12-06 17:38:26 +01:00
android:layout_gravity="center_vertical"
tools:textColor="?attr/contextMenuButtonColor"
2017-12-08 14:26:02 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-12-06 17:38:26 +01:00
osmand:typeface="@string/font_roboto_medium"
2017-11-28 15:36:20 +01:00
android:text="@string/description"/>
2017-12-06 17:38:26 +01:00
<net.osmand.plus.widgets.TextViewEx
android:textAllCaps="true"
2017-11-28 15:36:20 +01:00
android:background="?attr/selectableItemBackground"
android:id="@+id/context_menu_directions_button"
android:layout_width="0dp"
android:layout_weight="1"
2017-12-06 17:38:26 +01:00
android:layout_height="match_parent"
2017-12-07 12:26:34 +01:00
android:paddingLeft="@dimen/context_menu_padding_margin_default"
android:paddingRight="@dimen/context_menu_padding_margin_default"
2017-11-28 15:36:20 +01:00
android:gravity="end|center_vertical"
2017-12-06 17:38:26 +01:00
tools:textColor="?attr/contextMenuButtonColor"
2017-12-08 14:26:02 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-12-06 17:38:26 +01:00
osmand:typeface="@string/font_roboto_medium"
2017-11-28 15:36:20 +01:00
android:text="@string/get_directions"/>
</LinearLayout>
2015-09-04 18:29:28 +02:00
</LinearLayout>
2015-09-08 14:32:42 +02:00
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="@drawable/bg_contextmenu_shadow"
android:foregroundGravity="top|fill_horizontal">
2015-09-08 14:32:42 +02:00
<ScrollView
android:id="@+id/context_menu_bottom_scroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-12-06 17:59:01 +01:00
tools:background="?attr/ctx_menu_info_view_bg">
2015-09-08 14:32:42 +02:00
<LinearLayout
android:id="@+id/context_menu_bottom_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-12-06 17:59:01 +01:00
tools:background="?attr/ctx_menu_info_view_bg"
android:orientation="vertical">
</LinearLayout>
2015-09-04 18:29:28 +02:00
</ScrollView>
</FrameLayout>
2015-09-09 16:04:35 +02:00
</LinearLayout>
2015-10-13 18:19:54 +02:00
<FrameLayout
android:id="@+id/context_menu_fab_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:visibility="gone">
2015-10-13 18:19:54 +02:00
2017-10-18 14:43:19 +02:00
<LinearLayout
android:id="@+id/context_menu_zoom_buttons"
android:layout_width="@dimen/fab_size_with_shadow"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:gravity="center"
android:layout_marginRight="@dimen/fab_margin_right"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
<ImageButton
android:id="@+id/context_menu_zoom_in_button"
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:background="@drawable/btn_circle"
android:contentDescription="@string/zoomIn"
tools:src="@drawable/ic_action_test_light"/>
<ImageButton
android:id="@+id/context_menu_zoom_out_button"
android:layout_width="@dimen/map_button_size"
android:layout_height="@dimen/map_button_size"
android:layout_marginTop="@dimen/map_button_spacing"
android:background="@drawable/btn_circle"
android:contentDescription="@string/zoomOut"
tools:src="@drawable/ic_action_test_light"/>
</LinearLayout>
2015-10-13 18:19:54 +02:00
</FrameLayout>
2015-09-11 18:13:40 +02:00
</FrameLayout>