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-09-15 14:30:01 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/transparent">
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_main"
|
2015-09-15 14:30:01 +02:00
|
|
|
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"
|
2015-09-15 14:30:01 +02:00
|
|
|
android:layout_width="match_parent"
|
2015-09-10 15:50:47 +02:00
|
|
|
android:layout_height="20dp"
|
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"
|
2015-09-15 14:30:01 +02:00
|
|
|
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"
|
2015-09-15 14:30:01 +02: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:baselineAligned="false"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_icon_layout"
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/context_menu_icon_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginTop="18dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
android:src="@drawable/ic_action_building_number"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:layout_height="wrap_content"
|
2015-09-10 15:50:47 +02:00
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/context_menu_line1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:text="@string/search_address_building"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="@dimen/default_list_text_size_large"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/context_menu_line2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="12dp"
|
|
|
|
android:layout_marginRight="12dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:text="@string/other_location"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
|
2015-10-23 11:58:26 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/title_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:paddingLeft="10dp"
|
2015-10-23 14:28:35 +02:00
|
|
|
android:paddingRight="10dp"
|
2015-10-23 11:58:26 +02:00
|
|
|
android:gravity="left|center_vertical"
|
|
|
|
android:text="@string/osmand_parking_delete"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:textColor="?attr/contextMenuButtonColor"
|
|
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
2015-09-10 15:50:47 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_close_btn_layout"
|
2015-10-13 18:19:54 +02:00
|
|
|
android:layout_width="66dp"
|
2015-09-10 15:50:47 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
</LinearLayout>
|
2015-09-08 14:32:42 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-09-04 18:29:28 +02:00
|
|
|
<View
|
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="54dp">
|
|
|
|
|
|
|
|
<ImageButton
|
2015-10-15 14:56:24 +02:00
|
|
|
android:id="@+id/context_menu_fav_button"
|
2015-09-15 14:30:01 +02:00
|
|
|
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"
|
2015-10-15 14:56:24 +02:00
|
|
|
android:src="@drawable/ic_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
|
2015-10-15 14:56:24 +02:00
|
|
|
android:id="@+id/context_menu_route_button"
|
2015-09-15 14:30:01 +02:00
|
|
|
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"
|
2015-10-15 14:56:24 +02:00
|
|
|
android:src="@drawable/map_action_waypoints"/>
|
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"
|
2015-09-15 14:30:01 +02:00
|
|
|
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/abc_ic_menu_share_mtrl_alpha"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/context_menu_more_button"
|
2015-09-15 14:30:01 +02:00
|
|
|
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/ic_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
|
|
|
|
2015-09-11 18:13:40 +02:00
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/context_menu_bottom_scroll"
|
2015-09-15 14:30:01 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-10-08 18:15:53 +02:00
|
|
|
android:background="?attr/ctx_menu_info_view_bg">
|
2015-09-08 14:32:42 +02:00
|
|
|
|
2015-09-11 18:13:40 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_bottom_view"
|
2015-09-15 14:30:01 +02:00
|
|
|
android:layout_width="match_parent"
|
2015-09-11 18:13:40 +02:00
|
|
|
android:layout_height="wrap_content"
|
2015-10-08 18:15:53 +02:00
|
|
|
android:background="?attr/ctx_menu_info_view_bg"
|
2015-09-11 18:13:40 +02:00
|
|
|
android:orientation="vertical">
|
2015-09-08 14:32:42 +02:00
|
|
|
|
2015-09-11 18:13:40 +02:00
|
|
|
</LinearLayout>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
2015-09-11 18:13:40 +02:00
|
|
|
</ScrollView>
|
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"
|
2015-10-21 14:59:27 +02:00
|
|
|
android:layout_width="@dimen/fab_size_with_shadow"
|
|
|
|
android:layout_height="@dimen/fab_size_with_shadow"
|
2015-10-13 18:19:54 +02:00
|
|
|
android:layout_gravity="right"
|
|
|
|
android:layout_marginRight="12dp"
|
2015-10-21 14:59:27 +02:00
|
|
|
android:background="@drawable/fab_background_style"
|
2015-10-13 18:19:54 +02:00
|
|
|
android:scaleType="center"
|
|
|
|
android:src="@drawable/map_directions"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2015-09-11 18:13:40 +02:00
|
|
|
|
|
|
|
</FrameLayout>
|