OsmAnd/OsmAnd/res/layout/plan_route_info.xml

418 lines
21 KiB
XML
Raw Normal View History

2014-03-16 23:12:04 +01:00
<?xml version="1.0" encoding="utf-8"?>
2016-01-08 18:55:33 +01:00
<FrameLayout
android:id="@+id/plan_route_info"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_transparent"
android:clickable="true"
xmlns:tools="http://schemas.android.com/tools">
2014-03-16 23:12:04 +01:00
2015-04-19 23:14:25 +02:00
<LinearLayout
android:id="@+id/main_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
2017-12-19 09:25:08 +01:00
tools:background="@drawable/route_info_menu_bg_dark"
android:clickable="true"
2015-12-08 19:50:08 +01:00
android:orientation="vertical">
2014-03-16 23:12:04 +01:00
<LinearLayout
android:id="@+id/ModesLayout"
android:layout_width="fill_parent"
2016-01-08 18:55:33 +01:00
android:layout_height="wrap_content"
android:orientation="vertical">
2016-01-08 18:55:33 +01:00
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="@dimen/route_info_modes_height"
2016-01-08 18:55:33 +01:00
android:orientation="horizontal">
2015-04-19 23:14:25 +02:00
2015-12-08 19:50:08 +01:00
<LinearLayout
2016-01-08 18:55:33 +01:00
android:id="@+id/app_modes"
android:layout_width="0dp"
2015-12-08 19:50:08 +01:00
android:layout_height="wrap_content"
2016-01-08 18:55:33 +01:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="left"
android:orientation="horizontal"/>
2015-12-08 19:50:08 +01:00
2016-01-08 18:55:33 +01:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="@dimen/list_content_padding"
android:orientation="horizontal"
android:visibility="gone">
2015-04-19 23:14:25 +02:00
2016-01-08 18:55:33 +01:00
<ImageView
android:id="@+id/waypoints"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
2016-01-08 18:55:33 +01:00
android:scaleType="center"
android:src="@drawable/map_action_waypoints"/>
</LinearLayout>
2016-01-08 18:55:33 +01:00
</LinearLayout>
<View
android:id="@+id/dividerModesLayout"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/dashboard_divider_dark"
android:focusable="false"/>
</LinearLayout>
<ScrollView
2015-04-19 23:14:25 +02:00
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true">
2014-03-16 23:12:04 +01:00
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2014-03-16 23:12:04 +01:00
2017-12-22 10:45:19 +01:00
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
2017-12-22 10:45:19 +01:00
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content">
<LinearLayout
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
android:id="@+id/FromLayout"
android:layout_width="fill_parent"
android:layout_height="@dimen/list_item_height"
android:orientation="horizontal">
<ImageView
android:id="@+id/fromIcon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/route_info_icon_padding_left"
android:layout_marginLeft="@dimen/route_info_icon_padding_left"
android:layout_marginRight="@dimen/route_info_icon_padding_right"
android:layout_marginEnd="@dimen/route_info_icon_padding_right"
android:src="@drawable/map_default_location"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/fromTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginTop="5dp"
android:text="@string/route_from"
android:textSize="@dimen/default_sub_text_size"/>
<Spinner
android:id="@+id/FromSpinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="-8dp"
android:background="@null"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
<ImageView
android:id="@+id/fromDropDownIcon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginRight="@dimen/list_header_text_left_margin"
android:src="@drawable/ic_action_arrow_drop_down"/>
</LinearLayout>
2017-12-22 10:45:19 +01:00
<View
android:layout_marginStart="@dimen/route_info_divider_margin"
android:layout_marginLeft="@dimen/route_info_divider_margin"
android:id="@+id/dividerFromDropDown"
android:layout_width="match_parent"
2017-12-22 10:45:19 +01:00
android:layout_height="1dp"
android:background="@color/dashboard_divider_dark"
android:focusable="false"/>
<LinearLayout
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
android:id="@+id/ViaLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/list_item_height"
android:orientation="horizontal">
<ImageView
android:id="@+id/viaIcon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/route_info_icon_padding_left"
android:layout_marginLeft="@dimen/route_info_icon_padding_left"
android:layout_marginRight="@dimen/route_info_icon_padding_right"
android:layout_marginEnd="@dimen/route_info_icon_padding_right"
android:src="@drawable/map_default_location"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/ViaSubView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginTop="5dp"
android:gravity="left"
android:text="@string/route_via"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@+id/ViaView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/list_content_padding"
android:gravity="left"
android:singleLine="true"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
</LinearLayout>
<View
android:layout_marginStart="@dimen/route_info_divider_margin"
android:layout_marginLeft="@dimen/route_info_divider_margin"
android:id="@+id/viaLayoutDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/dashboard_divider_dark"
android:focusable="false"/>
<LinearLayout
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
android:id="@+id/ToLayout"
android:layout_width="fill_parent"
android:layout_height="@dimen/list_item_height"
android:orientation="horizontal">
<ImageView
android:id="@+id/toIcon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/route_info_icon_padding_left"
android:layout_marginLeft="@dimen/route_info_icon_padding_left"
android:layout_marginRight="@dimen/route_info_icon_padding_right"
android:layout_marginEnd="@dimen/route_info_icon_padding_right"
android:src="@drawable/map_default_location"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/toTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginTop="5dp"
android:text="@string/route_to"
android:textSize="@dimen/default_sub_text_size">
</TextView>
<Spinner
android:id="@+id/ToSpinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="-8dp"
android:background="@null"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
<ImageView
android:id="@+id/toDropDownIcon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginRight="@dimen/list_header_text_left_margin"
android:src="@drawable/ic_action_arrow_drop_down"/>
</LinearLayout>
</LinearLayout>
2015-04-19 23:14:25 +02:00
<ImageView
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
2017-12-19 12:05:01 +01:00
android:id="@+id/swap_direction_image_view"
android:paddingRight="@dimen/route_info_icon_padding_right"
android:paddingLeft="@dimen/route_info_icon_padding_right"
android:layout_gravity="end"
tools:src="@drawable/ic_action_test_light"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
2017-12-22 10:45:19 +01:00
</LinearLayout>
<View
2015-12-11 14:29:36 +01:00
android:id="@+id/dividerToDropDown"
android:layout_width="match_parent"
android:layout_height="1dp"
2015-12-11 14:29:36 +01:00
android:background="@color/dashboard_divider_dark"
android:focusable="false"/>
<LinearLayout
android:id="@+id/RouteInfoControls"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/Info"
android:layout_width="fill_parent"
2015-12-11 14:29:36 +01:00
android:layout_height="wrap_content"
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
2016-01-08 18:55:33 +01:00
android:minHeight="@dimen/list_item_height"
android:orientation="horizontal">
<ImageView
android:id="@+id/Prev"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/shared_string_previous"
android:scaleType="center"
android:src="@drawable/ic_prev"/>
<ImageView
android:id="@+id/InfoIcon"
2015-12-11 14:29:36 +01:00
android:layout_width="@dimen/standard_icon_size"
android:layout_height="match_parent"
2016-01-08 18:55:33 +01:00
android:layout_gravity="center_vertical"
2015-12-11 14:29:36 +01:00
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:contentDescription="@string/info_button"
android:scaleType="center"
android:src="@drawable/ic_action_info_dark"/>
2015-04-19 23:14:25 +02:00
2015-12-11 14:29:36 +01:00
<LinearLayout
android:id="@+id/InfoDistance"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/DistanceTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginTop="5dp"
android:gravity="left"
android:text="@string/route_distance"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@+id/DistanceText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/list_content_padding"
android:gravity="left"
android:singleLine="true"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
<ImageView
android:id="@+id/DurationIcon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="match_parent"
2016-01-08 18:55:33 +01:00
android:layout_gravity="center_vertical"
2015-12-11 14:29:36 +01:00
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:contentDescription="@string/info_button"
android:scaleType="center"
2017-12-21 14:29:28 +01:00
android:src="@drawable/ic_action_time_span"/>
2015-12-11 14:29:36 +01:00
<LinearLayout
android:id="@+id/InfoDuration"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/DurationTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginTop="5dp"
android:gravity="left"
android:text="@string/route_duration"
android:textSize="@dimen/default_sub_text_size"/>
<TextView
android:id="@+id/DurationText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/list_content_padding"
android:gravity="left"
android:singleLine="true"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"/>
</LinearLayout>
<TextView
android:id="@+id/InfoTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|left"
android:layout_margin="8dp"
android:layout_weight="1"
android:textSize="@dimen/default_desc_text_size"/>
<ImageView
android:id="@+id/Next"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:layout_marginLeft="5dp"
2017-12-22 10:45:19 +01:00
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/shared_string_next"
android:scaleType="center"
android:src="@drawable/ic_next"/>
</LinearLayout>
</LinearLayout>
2015-04-19 23:14:25 +02:00
</LinearLayout>
2015-12-08 19:50:08 +01:00
</ScrollView>
2015-12-08 19:50:08 +01:00
<View
2015-12-11 14:29:36 +01:00
android:id="@+id/dividerButtons"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
2015-12-11 14:29:36 +01:00
android:background="@color/dashboard_divider_dark"
android:focusable="false"/>
<include layout="@layout/map_route_prepare_bottom"
android:id="@+id/map_route_prepare_bottom_view"/>
</LinearLayout>
</FrameLayout>