OsmAnd/OsmAnd/res/layout/map_context_menu_fragment.xml

392 lines
18 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"
2015-11-13 17:39:34 +01:00
android:background="@android:color/transparent">
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">
<LinearLayout
2015-09-10 15:50:47 +02:00
android:id="@+id/context_menu_top_shadow"
android:layout_width="match_parent"
android:layout_height="@dimen/context_menu_top_shadow_h"
2015-09-04 18:29:28 +02:00
android:orientation="horizontal">
2015-09-10 15:50:47 +02:00
</LinearLayout>
2015-09-04 18:29:28 +02:00
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: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"
android:layout_marginBottom="@dimen/context_menu_first_line_bottom_margin"
2015-11-13 17:39:34 +01:00
android:baselineAligned="false"
2015-09-10 15:50:47 +02:00
android:orientation="horizontal">
<LinearLayout
android:id="@+id/context_menu_icon_layout"
android:layout_width="52dp"
2015-11-08 17:45:37 +01:00
android:layout_height="match_parent">
2015-09-10 15:50:47 +02: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_marginLeft="16dp"
2015-09-10 15:50:47 +02:00
android:layout_marginStart="12dp"
android:layout_marginTop="@dimen/context_menu_icon_top_padding"
2015-09-10 15:50:47 +02:00
android:src="@drawable/ic_action_building_number"/>
</LinearLayout>
<LinearLayout
2015-11-08 17:45:37 +01:00
android:layout_width="match_parent"
2015-09-04 18:29:28 +02:00
android:layout_height="wrap_content"
2015-09-10 15:50:47 +02:00
android:orientation="vertical">
2015-11-08 17:45:37 +01:00
<LinearLayout
android:layout_width="match_parent"
2015-09-10 15:50:47 +02:00
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
2015-11-08 17:45:37 +01:00
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/context_menu_first_line_top_margin"
2015-11-08 17:45:37 +01:00
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"
2015-11-15 17:02:25 +01:00
android:maxLines="6"
2015-11-14 08:20:24 +01:00
android:ellipsize="end"
2015-11-08 17:45:37 +01:00
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size_large"/>
</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"
2015-11-08 17:45:37 +01:00
android:orientation="horizontal">
<Button
android:id="@+id/title_button_top_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-11-19 18:17:51 +01:00
android:background="?attr/selectableItemBackground"
2015-11-08 17:45:37 +01:00
android:gravity="center"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
2015-11-08 17:45:37 +01:00
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"
2015-09-10 15:50:47 +02:00
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="@dimen/context_menu_second_line_top_margin"
2015-11-13 17:39:34 +01:00
android:orientation="horizontal">
2015-11-08 17:45:37 +01:00
2015-11-13 17:39:34 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2015-11-08 17:45:37 +01:00
2015-11-13 17:39:34 +01:00
<LinearLayout
2015-11-16 13:12:21 +01:00
android:id="@+id/context_menu_line2_layout"
2015-11-13 17:39:34 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
2015-11-08 17:45:37 +01:00
2015-11-13 17:39:34 +01:00
<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"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_desc_text_size"/>
</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"
2015-11-13 17:39:34 +01:00
android:orientation="horizontal">
<ImageView
android:id="@+id/direction"
android:layout_width="@dimen/dashFavDirectionSize"
android:layout_height="@dimen/dashFavDirectionSize"
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>
2015-11-08 17:45:37 +01:00
</LinearLayout>
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="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/context_menu_buttons_top_margin"
2015-11-04 13:07:00 +01:00
android:clickable="true"
2015-11-08 17:45:37 +01:00
android:orientation="horizontal"
android:paddingBottom="@dimen/context_menu_buttons_padding_bottom"
2015-11-13 17:39:34 +01:00
android:paddingLeft="62dp"
android:paddingRight="2dp"
android:visibility="gone"
tools:visibility="visible">
<Button
android:id="@+id/title_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-11-19 18:17:51 +01:00
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"
2015-11-04 13:07:00 +01:00
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"
2015-11-05 10:39:36 +01:00
android:layout_width="wrap_content"
2015-11-08 17:45:37 +01:00
android:layout_height="wrap_content"
2015-11-05 10:39:36 +01:00
android:layout_marginLeft="-4dp"
2015-11-13 17:39:34 +01:00
android:clickable="true"
android:gravity="center_vertical"
android:text="— 00:26"
android:textColor="?android:textColorSecondary"
2015-11-13 17:39:34 +01:00
android:textSize="@dimen/default_desc_text_size"/>
2015-11-04 13:07:00 +01:00
<Button
android:id="@+id/title_button_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-11-19 18:17:51 +01:00
android:background="?attr/selectableItemBackground"
2015-11-13 17:39:34 +01:00
android:drawableLeft="@drawable/ic_action_delete_dark"
2015-11-04 13:07:00 +01:00
android:gravity="center"
android:paddingLeft="@dimen/context_menu_button_padding_x"
android:paddingRight="@dimen/context_menu_button_padding_x"
2015-11-04 13:07:00 +01:00
android:text="@string/shared_string_delete"
android:textColor="?attr/contextMenuButtonColor"
android:textSize="@dimen/default_desc_text_size"/>
</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:layout_marginTop="@dimen/context_menu_buttons_top_margin"
2015-11-05 10:39:36 +01:00
android:clickable="true"
2015-11-13 17:39:34 +01:00
android:gravity="center_vertical"
android:minHeight="@dimen/context_menu_progress_min_height"
2015-11-05 10:39:36 +01:00
android:orientation="horizontal"
android:paddingBottom="@dimen/context_menu_buttons_padding_bottom"
2015-11-13 17:39:34 +01:00
android:paddingLeft="72dp"
android:paddingRight="2dp"
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: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"
2015-09-08 14:32:42 +02:00
android:background="?attr/dashboard_divider"/>
2015-09-04 18:29:28 +02:00
2015-09-10 15:50:47 +02:00
<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">
2015-09-10 15:50:47 +02:00
<ImageButton
android:id="@+id/context_menu_fav_button"
android:layout_width="match_parent"
2015-09-10 15:50:47 +02:00
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"/>
2015-09-10 15:50:47 +02:00
<View
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"
2015-09-10 15:50:47 +02:00
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"/>
2015-09-10 15:50:47 +02:00
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="?attr/dashboard_divider"/>
<ImageButton
android:id="@+id/context_menu_share_button"
android:layout_width="match_parent"
2015-09-10 15:50:47 +02:00
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"/>
2015-09-10 15:50:47 +02:00
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="?attr/dashboard_divider"/>
<ImageButton
android:id="@+id/context_menu_more_button"
android:layout_width="match_parent"
2015-09-10 15:50:47 +02:00
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"/>
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
</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"
android: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"
android: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">
<ImageView
android:id="@+id/context_menu_fab_view"
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"/>
2015-10-13 18:19:54 +02:00
</FrameLayout>
2015-09-11 18:13:40 +02:00
</FrameLayout>