507 lines
No EOL
23 KiB
XML
507 lines
No EOL
23 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout
|
|
android:id="@+id/context_menu_layout"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/transparent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_top_shadow"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/context_menu_top_shadow_h"
|
|
android:orientation="horizontal">
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_top_shadow_all"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="true"
|
|
android:background="?attr/bg_map_context_menu"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_top_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/context_menu_first_line_bottom_margin"
|
|
android:baselineAligned="false"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_icon_layout"
|
|
android:layout_width="52dp"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/context_menu_icon_view"
|
|
android:layout_width="@dimen/map_widget_icon"
|
|
android:layout_height="@dimen/map_widget_icon"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="@dimen/context_menu_icon_top_padding"
|
|
android:src="@drawable/ic_action_building_number"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="20dp"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/context_menu_first_line_top_margin"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:id="@+id/context_menu_line1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/search_address_building"
|
|
style="@style/TextAppearance.ContextMenuTitle"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_close_btn_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:minWidth="@dimen/context_menu_top_right_button_min_width"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/title_button_top_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center"
|
|
android:paddingLeft="@dimen/context_menu_button_padding_x"
|
|
android:paddingRight="@dimen/context_menu_button_padding_x"
|
|
android:text="@string/shared_string_others"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="@dimen/context_menu_second_line_top_margin"
|
|
android:orientation="horizontal">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_line2_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1">
|
|
|
|
<TextView
|
|
android:id="@+id/context_menu_line2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/amenity_type_finance"
|
|
style="@style/TextAppearance.ContextMenuSubtitle"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/compass_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:minWidth="@dimen/context_menu_top_right_button_min_width"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
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_marginRight="4dp"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
tools:text="100500 km"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/title_button_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/context_menu_buttons_top_margin"
|
|
android:clickable="true"
|
|
android:minHeight="@dimen/context_menu_action_buttons_h"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/context_menu_buttons_padding_bottom"
|
|
android:paddingLeft="62dp"
|
|
android:paddingRight="2dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<Button
|
|
android:id="@+id/title_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="left|center_vertical"
|
|
android:paddingLeft="@dimen/context_menu_button_padding_x"
|
|
android:paddingRight="@dimen/context_menu_button_padding_x"
|
|
android:text="@string/recording_context_menu_play"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
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:layout_marginLeft="-4dp"
|
|
android:clickable="true"
|
|
android:gravity="center_vertical"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
tools:text="— 00:26"/>
|
|
|
|
<Button
|
|
android:id="@+id/title_button_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center"
|
|
android:paddingLeft="@dimen/context_menu_button_padding_x"
|
|
android:paddingRight="@dimen/context_menu_button_padding_x"
|
|
android:text="@string/shared_string_delete"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/title_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:background="?attr/dashboard_divider"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"/>
|
|
|
|
<Button
|
|
android:id="@+id/subtitle_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="left|center_vertical"
|
|
android:paddingLeft="@dimen/context_menu_button_padding_x"
|
|
android:paddingRight="@dimen/context_menu_button_padding_x"
|
|
android:text="@string/recording_context_menu_play"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/download_buttons_container"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="@dimen/context_menu_action_buttons_h"
|
|
android:layout_marginTop="@dimen/context_menu_buttons_top_margin"
|
|
android:clickable="true"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/context_menu_buttons_padding_bottom"
|
|
android:paddingLeft="62dp"
|
|
android:paddingRight="2dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<View
|
|
android:id="@+id/download_buttons_top_border"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/download_button_left"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="left|center_vertical"
|
|
android:paddingLeft="@dimen/context_menu_button_padding_x"
|
|
android:paddingRight="@dimen/context_menu_button_padding_x"
|
|
android:text="@string/shared_string_download"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<Button
|
|
android:id="@+id/download_button_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center"
|
|
android:paddingLeft="@dimen/context_menu_button_padding_x"
|
|
android:paddingRight="@dimen/context_menu_button_padding_x"
|
|
android:text="@string/shared_string_delete"
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/title_progress_container"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/context_menu_buttons_top_margin"
|
|
android:clickable="true"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="@dimen/context_menu_action_buttons_h"
|
|
android:orientation="horizontal"
|
|
android:paddingBottom="@dimen/context_menu_buttons_padding_bottom"
|
|
android:paddingLeft="72dp"
|
|
android:paddingRight="2dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<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"
|
|
android:layout_marginRight="12dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/progressTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:visibility="visible"
|
|
tools:text="@string/shared_string_downloading"/>
|
|
|
|
<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"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:scaleType="center"
|
|
tools:src="@drawable/map_action_cancel"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/buttons_top_border"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_buttons"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/context_menu_action_buttons_h">
|
|
|
|
<ImageButton
|
|
android:id="@+id/context_menu_fav_button"
|
|
android:contentDescription="@string/shared_string_add_to_favorites"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:background="?attr/dashboard_button"
|
|
android:scaleType="center"
|
|
android:src="@drawable/map_action_fav_dark"/>
|
|
|
|
<View
|
|
android:id="@+id/divider_hor_1"
|
|
android:layout_width="1dp"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/context_menu_route_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:background="?attr/dashboard_button"
|
|
android:scaleType="center"
|
|
android:src="@drawable/map_action_flag_dark"/>
|
|
|
|
<View
|
|
android:id="@+id/divider_hor_2"
|
|
android:layout_width="1dp"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/context_menu_share_button"
|
|
android:contentDescription="@string/context_menu_item_share_location"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:background="?attr/dashboard_button"
|
|
android:scaleType="center"
|
|
android:src="@drawable/map_action_gshare_dark"/>
|
|
|
|
<View
|
|
android:id="@+id/divider_hor_3"
|
|
android:layout_width="1dp"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/context_menu_more_button"
|
|
android:contentDescription="@string/shared_string_more"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:background="?attr/dashboard_button"
|
|
android:scaleType="center"
|
|
android:src="@drawable/map_overflow_menu_white"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:foreground="@drawable/bg_contextmenu_shadow"
|
|
android:foregroundGravity="top|fill_horizontal">
|
|
|
|
<ScrollView
|
|
android:id="@+id/context_menu_bottom_scroll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/ctx_menu_info_view_bg">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/context_menu_bottom_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/ctx_menu_info_view_bg"
|
|
android:orientation="vertical">
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/context_menu_fab_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<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>
|
|
|
|
<ImageView
|
|
android:id="@+id/context_menu_fab_view"
|
|
android:contentDescription="@string/layer_route"
|
|
android:layout_width="@dimen/fab_size_with_shadow"
|
|
android:layout_height="@dimen/fab_size_with_shadow"
|
|
android:layout_gravity="right"
|
|
android:layout_marginRight="@dimen/fab_margin_right"
|
|
android:background="@drawable/fab_background_style"
|
|
android:scaleType="center"
|
|
android:src="@drawable/map_directions"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</FrameLayout> |