2015-03-11 20:19:24 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-03-18 15:52:25 +01:00
|
|
|
android:orientation="vertical">
|
2015-03-11 20:19:24 +01:00
|
|
|
|
|
|
|
<!-- TOP ROW -->
|
|
|
|
|
2015-03-15 16:19:19 +01:00
|
|
|
<FrameLayout
|
2015-03-15 01:45:16 +01:00
|
|
|
android:id="@+id/map_top_bar"
|
2015-03-11 20:19:24 +01:00
|
|
|
android:layout_width="fill_parent"
|
2015-03-15 13:52:07 +01:00
|
|
|
android:layout_height="wrap_content"
|
2015-03-11 20:19:24 +01:00
|
|
|
android:background="@drawable/btn_flat"
|
2015-03-15 22:18:33 +01:00
|
|
|
android:minHeight="@dimen/map_address_height" >
|
2015-03-11 20:19:24 +01:00
|
|
|
|
2015-03-15 16:19:19 +01:00
|
|
|
<!-- android:layout_weight="1" to show properly next turn -->
|
2015-03-15 22:18:33 +01:00
|
|
|
|
2015-03-11 20:19:24 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/map_address_text"
|
2015-03-15 16:19:19 +01:00
|
|
|
android:layout_width="wrap_content"
|
2015-03-15 13:52:07 +01:00
|
|
|
android:layout_height="wrap_content"
|
2015-03-15 16:19:19 +01:00
|
|
|
android:layout_gravity="center"
|
2015-03-15 22:18:33 +01:00
|
|
|
android:ellipsize="end"
|
2015-03-11 20:19:24 +01:00
|
|
|
android:maxLines="1"
|
2015-03-14 02:01:43 +01:00
|
|
|
android:shadowColor="@color/color_myloc_distance"
|
|
|
|
android:shadowRadius="10"
|
2015-03-14 20:10:22 +01:00
|
|
|
android:text="Long Street Name"
|
2015-03-11 20:19:24 +01:00
|
|
|
android:textColor="@color/color_black"
|
2015-03-14 02:01:43 +01:00
|
|
|
android:textSize="@dimen/map_widget_text_size"
|
2015-03-15 01:45:16 +01:00
|
|
|
android:textStyle="bold" >
|
2015-03-11 20:19:24 +01:00
|
|
|
</TextView>
|
|
|
|
|
2015-03-15 13:52:07 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/waypoint_info_bar"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-03-15 22:18:33 +01:00
|
|
|
android:orientation="horizontal" >
|
2015-03-15 13:52:07 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/waypoint_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="@dimen/map_button_margin"
|
|
|
|
android:layout_marginRight="@dimen/map_button_margin"
|
2015-03-29 01:32:46 +01:00
|
|
|
android:src="@drawable/ic_action_test_light" />
|
2015-03-15 13:52:07 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/waypoint_dist"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textColor="@color/wpt_distance_color"
|
|
|
|
android:textSize="15sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/waypoint_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/waypoint_more"
|
|
|
|
android:layout_width="@dimen/map_address_height"
|
|
|
|
android:layout_height="@dimen/map_address_height"
|
|
|
|
android:background="@drawable/btn_circle_transparent"
|
2015-03-15 14:25:07 +01:00
|
|
|
android:src="@drawable/ic_overflow_menu_white" />
|
2015-03-15 13:52:07 +01:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/waypoint_close"
|
|
|
|
android:layout_width="@dimen/map_address_height"
|
|
|
|
android:layout_height="@dimen/map_address_height"
|
|
|
|
android:background="@drawable/btn_circle_transparent"
|
2015-03-29 01:32:46 +01:00
|
|
|
android:src="@drawable/ic_action_test_light" />
|
2015-03-15 13:52:07 +01:00
|
|
|
</LinearLayout>
|
2015-03-15 16:19:19 +01:00
|
|
|
</FrameLayout>
|
2015-03-11 20:19:24 +01:00
|
|
|
<!-- Widgets -->
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" >
|
|
|
|
|
|
|
|
<!-- LEFT widgets colon -->
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1" >
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|left"
|
|
|
|
android:layout_weight="0.4"
|
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
|
|
<LinearLayout
|
2015-03-15 01:45:16 +01:00
|
|
|
android:id="@+id/map_left_widgets_panel"
|
2015-03-11 20:19:24 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|left"
|
2015-03-14 02:01:43 +01:00
|
|
|
android:orientation="vertical" >
|
2015-03-11 20:19:24 +01:00
|
|
|
|
|
|
|
<include layout="@layout/map_hud_widget" />
|
|
|
|
<include layout="@layout/map_hud_widget" />
|
2015-03-15 22:18:33 +01:00
|
|
|
<include layout="@layout/map_hud_widget" />
|
2015-03-11 20:19:24 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|left"
|
|
|
|
android:layout_marginLeft="@dimen/map_button_margin"
|
|
|
|
android:layout_marginTop="@dimen/map_button_margin"
|
|
|
|
android:orientation="horizontal" >
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/map_layers_button"
|
2015-04-14 17:35:57 +02:00
|
|
|
android:layout_width="@dimen/map_small_button_size"
|
|
|
|
android:layout_height="@dimen/map_small_button_size"
|
2015-03-11 20:19:24 +01:00
|
|
|
android:background="@drawable/btn_inset_circle"
|
2015-03-29 01:32:46 +01:00
|
|
|
android:src="@drawable/ic_action_test_light" />
|
2015-03-11 20:19:24 +01:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/map_compass_button"
|
2015-04-14 17:35:57 +02:00
|
|
|
android:layout_width="@dimen/map_small_button_size"
|
|
|
|
android:layout_height="@dimen/map_small_button_size"
|
2015-04-14 18:03:30 +02:00
|
|
|
android:layout_marginLeft="@dimen/map_small_button_margin"
|
|
|
|
android:background="@drawable/btn_inset_circle_trans"
|
2015-03-29 01:32:46 +01:00
|
|
|
android:src="@drawable/ic_action_test_light" />
|
2015-03-11 20:19:24 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- empty block to not let widgets grow more than 40% -->
|
2015-03-14 02:01:43 +01:00
|
|
|
|
2015-03-11 20:19:24 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="0.6" >
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2015-04-14 18:15:08 +02:00
|
|
|
|
2015-03-11 20:19:24 +01:00
|
|
|
<!-- RIGHT widgets colon -->
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1" >
|
|
|
|
|
|
|
|
<!-- empty block to not let widgets grow more than 40% -->
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="0.6" >
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-03-15 01:45:16 +01:00
|
|
|
<FrameLayout
|
2015-03-11 20:19:24 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|right"
|
2015-03-15 01:45:16 +01:00
|
|
|
android:layout_weight="0.4" >
|
2015-03-11 20:19:24 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|right"
|
|
|
|
android:orientation="vertical" >
|
|
|
|
|
2015-03-15 01:45:16 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/map_right_widgets_panel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|right"
|
|
|
|
android:orientation="vertical" >
|
2015-03-15 13:52:07 +01:00
|
|
|
|
2015-03-15 01:45:16 +01:00
|
|
|
<include layout="@layout/map_hud_widget" />
|
2015-03-15 22:18:33 +01:00
|
|
|
<include layout="@layout/map_hud_widget" />
|
2015-03-15 01:45:16 +01:00
|
|
|
</LinearLayout>
|
2015-03-14 02:01:43 +01:00
|
|
|
|
2015-03-15 13:52:07 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/map_collapse_button"
|
2015-04-14 17:35:57 +02:00
|
|
|
android:layout_width="@dimen/map_small_button_size"
|
|
|
|
android:layout_height="@dimen/map_small_button_size"
|
2015-03-15 13:52:07 +01:00
|
|
|
android:layout_gravity="top|center_horizontal"
|
|
|
|
android:background="@drawable/btn_inset_circle"
|
2015-03-29 01:32:46 +01:00
|
|
|
android:src="@drawable/ic_action_test_light" />
|
2015-03-11 20:19:24 +01:00
|
|
|
</LinearLayout>
|
2015-03-15 01:45:16 +01:00
|
|
|
</FrameLayout>
|
2015-03-11 20:19:24 +01:00
|
|
|
</LinearLayout>
|
2015-04-14 18:15:08 +02:00
|
|
|
<!-- CENTER -->
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/map_center_info"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="top|center"
|
|
|
|
android:layout_marginTop="@dimen/map_button_margin"
|
|
|
|
android:background="@drawable/btn_round"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:orientation="vertical" >
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/map_lanes"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/map_lanes_dist_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="1048 km"
|
|
|
|
android:textColor="@color/color_black"
|
|
|
|
android:textSize="@dimen/map_widget_text_size_small" />
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/map_horizontal_progress"
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
android:layout_width="@dimen/map_routing_progress_width"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/map_button_margin"
|
|
|
|
android:layout_marginRight="@dimen/map_button_margin"
|
|
|
|
android:max="100"
|
|
|
|
android:progress="60"
|
|
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|
2015-03-11 20:19:24 +01:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|