OsmAnd/OsmAnd/res/layout/route_info_statistic.xml

185 lines
6.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/route_info_details_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<View
android:id="@+id/dividerToDropDown"
android:layout_width="match_parent"
2019-02-23 17:38:53 +01:00
android:layout_height="1dp"
android:background="?attr/divider_color_basic"
android:focusable="false" />
<LinearLayout
android:id="@+id/RouteInfoControls"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-03-27 17:56:07 +01:00
android:background="?attr/card_and_list_background_basic"
android:orientation="vertical">
<LinearLayout
android:id="@+id/info_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/Info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/route_info_list_item_height"
android:orientation="horizontal"
2019-03-27 17:56:07 +01:00
android:paddingTop="@dimen/route_info_details_padding"
android:paddingBottom="@dimen/route_info_details_padding">
<LinearLayout
android:layout_width="0dp"
2019-03-28 09:26:16 +01:00
android:layout_height="wrap_content"
android:layout_weight="1"
2019-03-28 09:26:16 +01:00
android:minHeight="36dp"
android:orientation="horizontal"
android:paddingEnd="@dimen/route_info_buttons_padding_top_bottom"
android:paddingRight="@dimen/route_info_buttons_padding_top_bottom">
<ImageView
android:id="@+id/InfoIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:contentDescription="@string/info_button"
android:src="@drawable/ic_action_info_dark" />
<LinearLayout
android:id="@+id/InfoDistance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/DistanceText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:singleLine="true"
2019-07-04 20:49:32 +02:00
android:textColor="?android:textColorPrimary"
2019-03-28 09:26:16 +01:00
android:textSize="@dimen/default_list_text_size"
tools:text="10 km" />
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/DistanceTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
2019-03-28 09:32:54 +01:00
android:text="@string/distance"
android:textColor="@color/description_font_and_bottom_sheet_icons"
2019-03-28 09:32:54 +01:00
android:textSize="@dimen/default_sub_text_size" />
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/info_divider"
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="?attr/divider_color_basic"
android:paddingBottom="@dimen/list_item_button_padding" />
<LinearLayout
android:layout_width="0dp"
2019-03-28 09:26:16 +01:00
android:layout_height="wrap_content"
android:layout_weight="1"
2019-03-28 09:26:16 +01:00
android:minHeight="36dp"
android:orientation="horizontal"
android:paddingEnd="@dimen/route_info_buttons_padding_top_bottom"
android:paddingRight="@dimen/route_info_buttons_padding_top_bottom">
<ImageView
android:id="@+id/DurationIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:contentDescription="@string/info_button"
android:src="@drawable/ic_action_time" />
<LinearLayout
android:id="@+id/InfoDuration"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/DurationText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:singleLine="true"
2019-07-04 20:49:32 +02:00
android:textColor="?android:textColorPrimary"
2019-03-28 09:26:16 +01:00
android:textSize="@dimen/default_list_text_size"
tools:text="5 min" />
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/DurationTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:textColor="@color/description_font_and_bottom_sheet_icons"
2019-03-28 09:26:16 +01:00
android:textSize="@dimen/default_sub_text_size"
tools:text="@string/arrive_at_time" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/chart"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_gravity="center_vertical" />
</LinearLayout>
<FrameLayout
android:id="@+id/details_button"
android:layout_width="match_parent"
2019-03-29 15:11:05 +01:00
android:layout_height="@dimen/route_info_buttons_height"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/route_info_buttons_padding_top_bottom"
android:layout_marginTop="@dimen/route_info_details_padding"
2019-03-27 17:56:07 +01:00
android:layout_marginRight="@dimen/route_info_buttons_padding_top_bottom"
android:layout_marginBottom="@dimen/route_info_details_padding"
android:orientation="horizontal">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/details_button_descr"
android:layout_width="match_parent"
2019-03-29 15:11:05 +01:00
android:layout_height="match_parent"
android:layout_gravity="center"
android:ellipsize="end"
android:gravity="center"
android:letterSpacing="@dimen/text_button_letter_spacing"
android:maxLines="1"
android:text="@string/rendering_category_details"
android:textColor="?attr/active_color_basic"
android:textSize="@dimen/text_button_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:ignore="UnusedAttribute" />
</FrameLayout>
</LinearLayout>
<include
android:id="@+id/shadow"
layout="@layout/card_bottom_divider"
android:visibility="visible" />
</LinearLayout>