2015-09-04 18:29:28 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout android:id="@+id/context_menu_layout"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="fill_parent"
|
2015-09-08 19:01:25 +02:00
|
|
|
android:layout_height="fill_parent"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-09-09 16:04:35 +02:00
|
|
|
android:id="@+id/context_menu_shadow_view"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="0dp"
|
2015-09-09 16:04:35 +02:00
|
|
|
android:layout_weight="0"
|
|
|
|
android:orientation="vertical"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_main"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-09-09 16:04:35 +02:00
|
|
|
android:layout_gravity="bottom"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:background="?attr/bg_map_context_menu"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_top_view"
|
2015-09-08 19:01:25 +02:00
|
|
|
android:baselineAligned="false"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_icon_layout"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/context_menu_icon_view"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:scaleType="center"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginLeft="12dp"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:src="@drawable/ic_action_building_number"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-09-08 14:32:42 +02:00
|
|
|
android:layout_width="0dp"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:layout_height="wrap_content"
|
2015-09-08 14:32:42 +02:00
|
|
|
android:layout_weight="1"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
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:textSize="@dimen/default_list_text_size_large"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2015-09-04 18:29:28 +02:00
|
|
|
android:textStyle="bold"/>
|
|
|
|
|
|
|
|
<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="3dp"
|
|
|
|
android:text="@string/other_location"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:textColor="?android:textColorSecondary"
|
2015-09-08 14:32:42 +02:00
|
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_close_btn_layout"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="match_parent">
|
2015-09-04 18:29:28 +02:00
|
|
|
|
2015-09-08 14:32:42 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/context_menu_close_btn_view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
android:src="@drawable/ic_action_remove_dark"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
2015-09-08 14:32:42 +02:00
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_buttons"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
2015-09-09 16:04:35 +02:00
|
|
|
android:layout_height="54dp">
|
2015-09-04 18:29:28 +02:00
|
|
|
|
2015-09-04 22:06:27 +02:00
|
|
|
<ImageButton
|
2015-09-04 18:29:28 +02:00
|
|
|
android:id="@+id/context_menu_route_button"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
2015-09-04 20:36:43 +02:00
|
|
|
android:scaleType="center"
|
2015-09-04 22:06:27 +02:00
|
|
|
android:background="?attr/dashboard_button"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:src="@drawable/map_directions"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_height="match_parent"
|
2015-09-08 14:32:42 +02:00
|
|
|
android:layout_width="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
2015-09-04 22:06:27 +02:00
|
|
|
<ImageButton
|
2015-09-04 18:29:28 +02:00
|
|
|
android:id="@+id/context_menu_fav_button"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
2015-09-04 20:36:43 +02:00
|
|
|
android:scaleType="center"
|
2015-09-04 22:06:27 +02:00
|
|
|
android:background="?attr/dashboard_button"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:src="@drawable/ic_action_fav_dark"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_height="match_parent"
|
2015-09-08 14:32:42 +02:00
|
|
|
android:layout_width="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
2015-09-04 22:06:27 +02:00
|
|
|
<ImageButton
|
2015-09-04 18:29:28 +02:00
|
|
|
android:id="@+id/context_menu_share_button"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
2015-09-04 20:36:43 +02:00
|
|
|
android:scaleType="center"
|
2015-09-04 22:06:27 +02:00
|
|
|
android:background="?attr/dashboard_button"
|
2015-09-07 09:36:55 +02:00
|
|
|
android:src="@drawable/abc_ic_menu_share_mtrl_alpha"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_height="match_parent"
|
2015-09-08 14:32:42 +02:00
|
|
|
android:layout_width="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
2015-09-04 22:06:27 +02:00
|
|
|
<ImageButton
|
2015-09-04 18:29:28 +02:00
|
|
|
android:id="@+id/context_menu_more_button"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_weight="1"
|
2015-09-04 20:36:43 +02:00
|
|
|
android:scaleType="center"
|
2015-09-04 22:06:27 +02:00
|
|
|
android:background="?attr/dashboard_button"
|
2015-09-09 16:04:35 +02:00
|
|
|
android:src="@drawable/ic_overflow_menu_white"/>
|
2015-09-04 18:29:28 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
2015-09-08 14:32:42 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_bottom_view"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-09-08 16:53:57 +02:00
|
|
|
android:orientation="vertical">
|
2015-09-08 14:32:42 +02:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-09-04 18:29:28 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
2015-09-09 16:04:35 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/context_menu_bottom_border"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="?attr/bg_map_context_menu"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-09-04 18:29:28 +02:00
|
|
|
</LinearLayout>
|