OsmAnd/OsmAnd/res/layout/plan_route_info.xml

226 lines
9.6 KiB
XML
Raw Normal View History

2014-03-16 23:12:04 +01:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2015-04-22 23:20:33 +02:00
android:id="@+id/plan_route_info"
2015-04-19 23:14:25 +02:00
android:layout_width="fill_parent"
2015-04-20 02:04:35 +02:00
android:layout_height="fill_parent"
2015-05-03 23:19:42 +02:00
android:background="?attr/bg_color"
2015-04-22 23:20:33 +02:00
android:orientation="vertical" >
2014-03-16 23:12:04 +01:00
2015-04-19 23:14:25 +02:00
<LinearLayout
android:id="@+id/ModesLayout"
2014-03-16 23:12:04 +01:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
2015-04-19 23:14:25 +02:00
android:orientation="vertical" >
2014-03-16 23:12:04 +01:00
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
2015-04-19 23:14:25 +02:00
android:orientation="horizontal" >
2015-04-19 23:14:25 +02:00
<LinearLayout
android:id="@+id/app_modes"
android:layout_width="0dp"
android:layout_height="wrap_content"
2015-04-19 23:14:25 +02:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="left"
android:orientation="horizontal" />
2015-04-19 23:14:25 +02:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-04-19 23:14:25 +02:00
android:layout_gravity="center_horizontal"
android:layout_marginLeft="@dimen/list_content_padding"
android:orientation="horizontal" >
<ImageView
android:id="@+id/waypoints"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:background="?attr/dashboard_button"
android:scaleType="center"
2015-11-13 18:01:31 +01:00
android:src="@drawable/map_action_waypoints" />
2015-04-19 23:14:25 +02:00
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"
android:focusable="false" />
</LinearLayout>
<ScrollView
android:layout_width="fill_parent"
2015-04-22 23:20:33 +02:00
android:layout_height="0dp"
android:layout_weight="1"
2015-04-22 01:03:20 +02:00
android:fillViewport="true">
2015-04-19 23:14:25 +02:00
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
2014-03-16 23:12:04 +01:00
<LinearLayout
2015-04-19 23:14:25 +02:00
android:id="@+id/FromLayout"
2014-03-16 23:12:04 +01:00
android:layout_width="fill_parent"
2015-04-19 23:14:25 +02:00
android:layout_height="@dimen/list_item_height"
android:orientation="vertical" >
2014-03-16 23:12:04 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-04-19 23:14:25 +02:00
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginTop="3dp"
2014-03-16 23:12:04 +01:00
android:text="@string/route_from"
2015-04-19 23:14:25 +02:00
android:textSize="@dimen/default_sub_text_size" />
2014-03-16 23:12:04 +01:00
<Spinner
android:id="@+id/FromSpinner"
android:layout_width="fill_parent"
2015-04-19 23:14:25 +02:00
android:layout_height="0dp"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:textSize="@dimen/default_list_text_size" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"
android:focusable="false" />
2014-03-16 23:12:04 +01:00
</LinearLayout>
<LinearLayout
2015-04-19 23:14:25 +02:00
android:id="@+id/ViaLayout"
android:layout_width="fill_parent"
2015-04-19 23:14:25 +02:00
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/ViaSubView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginTop="3dp"
android:gravity="left"
android:text="@string/route_via"
android:textSize="@dimen/default_sub_text_size" />
2014-03-16 23:12:04 +01:00
<TextView
android:id="@+id/ViaView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
2015-04-19 23:14:25 +02:00
android:layout_marginBottom="3dp"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginTop="3dp"
2014-03-16 23:12:04 +01:00
android:gravity="left"
2015-04-19 23:14:25 +02:00
android:textSize="@dimen/default_desc_text_size" />
2014-03-16 23:12:04 +01:00
2015-04-19 23:14:25 +02:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"
android:focusable="false" />
</LinearLayout>
<LinearLayout
2015-04-19 23:14:25 +02:00
android:id="@+id/ToLayout"
2014-03-16 23:12:04 +01:00
android:layout_width="fill_parent"
2015-04-19 23:14:25 +02:00
android:layout_height="@dimen/list_item_height"
android:orientation="vertical" >
2014-03-16 23:12:04 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2015-04-19 23:14:25 +02:00
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginTop="3dp"
2014-03-16 23:12:04 +01:00
android:text="@string/route_to"
2015-04-19 23:14:25 +02:00
android:textSize="@dimen/default_sub_text_size" >
2014-03-16 23:12:04 +01:00
</TextView>
<Spinner
android:id="@+id/ToSpinner"
android:layout_width="fill_parent"
2015-04-19 23:14:25 +02:00
android:layout_height="0dp"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:textSize="@dimen/default_list_text_size" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"
android:focusable="false" />
2014-03-16 23:12:04 +01:00
</LinearLayout>
2015-04-19 23:14:25 +02:00
<LinearLayout
android:id="@+id/RouteInfoControls"
android:layout_width="fill_parent"
2015-04-19 23:14:25 +02:00
android:layout_height="wrap_content"
android:orientation="vertical" >
2015-04-19 23:14:25 +02:00
<LinearLayout
android:id="@+id/Info"
android:layout_width="fill_parent"
android:layout_height="@dimen/list_item_height"
2015-04-21 01:22:30 +02:00
android:background="?attr/dashboard_button"
2015-04-19 23:14:25 +02:00
android:orientation="horizontal" >
<ImageView
android:id="@+id/Prev"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:background="?attr/dashboard_button"
android:contentDescription="@string/shared_string_previous"
android:scaleType="center"
android:src="@drawable/ic_prev" />
<ImageView
android:id="@+id/InfoIcon"
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
2015-04-20 02:04:35 +02:00
android:layout_gravity="center_vertical"
2015-04-19 23:14:25 +02:00
android:contentDescription="@string/info_button"
android:scaleType="center"
android:src="@drawable/ic_action_info_dark" />
<TextView
android:id="@+id/InfoTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|left"
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"
android:background="?attr/dashboard_button"
android:contentDescription="@string/shared_string_next"
android:scaleType="center"
android:src="@drawable/ic_next" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:attr/listDivider"
android:focusable="false" />
</LinearLayout>
</LinearLayout>
2015-04-20 02:04:35 +02:00
2014-03-16 23:12:04 +01:00
</ScrollView>
2015-04-19 23:14:25 +02:00
<include layout="@layout/map_route_prepare_bottom" />
2014-03-16 23:12:04 +01:00
</LinearLayout>