2017-02-15 17:15:23 +01:00
|
|
|
<?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"
|
2017-02-23 10:14:33 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="?attr/bg_color"
|
|
|
|
android:paddingTop="8dp">
|
|
|
|
|
|
|
|
<com.github.mikephil.charting.charts.LineChart
|
|
|
|
android:id="@+id/chart"
|
|
|
|
android:layout_width="match_parent"
|
2017-02-16 15:32:10 +01:00
|
|
|
android:layout_height="120dp"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="?attr/bg_color"
|
|
|
|
android:paddingBottom="4dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="16dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/average_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/ic_action_altitude_average"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_marginLeft="18dp">
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
|
|
android:id="@+id/average_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
2017-02-23 10:14:33 +01:00
|
|
|
tools:text="40 m"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/average_desc"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
|
|
|
android:text="@string/average_altitude"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_sub_text_size"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="16dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/range_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/ic_action_altitude_average"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_marginLeft="18dp">
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
|
|
android:id="@+id/range_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
2017-02-23 10:14:33 +01:00
|
|
|
tools:text="30m - 53m"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/range_desc"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
|
|
|
android:text="@string/altitude_range"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_sub_text_size"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="?attr/bg_color"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="8dp">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="16dp">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="?attr/bg_color"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="16dp">
|
|
|
|
|
|
|
|
<ImageView
|
2017-02-16 15:32:10 +01:00
|
|
|
android:id="@+id/ascent_icon"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2017-02-16 15:32:10 +01:00
|
|
|
android:src="@drawable/ic_action_altitude_ascent"/>
|
2017-02-15 17:15:23 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_marginLeft="18dp">
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
2017-02-16 15:32:10 +01:00
|
|
|
android:id="@+id/ascent_text"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
2017-02-23 10:14:33 +01:00
|
|
|
tools:text="174"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
|
|
|
|
<TextView
|
2017-02-16 15:32:10 +01:00
|
|
|
android:id="@+id/ascent_desc"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
2017-02-16 15:32:10 +01:00
|
|
|
android:text="@string/altitude_ascent"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_sub_text_size"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="16dp">
|
|
|
|
|
|
|
|
<ImageView
|
2017-02-16 15:32:10 +01:00
|
|
|
android:id="@+id/descent_icon"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2017-02-16 15:32:10 +01:00
|
|
|
android:src="@drawable/ic_action_altitude_descent"/>
|
2017-02-15 17:15:23 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_marginLeft="18dp">
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
2017-02-16 15:32:10 +01:00
|
|
|
android:id="@+id/descent_text"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
2017-02-23 10:14:33 +01:00
|
|
|
tools:text="164"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
|
|
|
|
<TextView
|
2017-02-16 15:32:10 +01:00
|
|
|
android:id="@+id/descent_desc"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@null"
|
2017-02-16 15:32:10 +01:00
|
|
|
android:text="@string/altitude_descent"
|
2017-02-15 17:15:23 +01:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_sub_text_size"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-03-08 09:33:11 +01:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/bg_color"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/details_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:gravity="center">
|
|
|
|
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
|
|
android:id="@+id/details_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="right|center_vertical"
|
|
|
|
android:textColor="?attr/color_dialog_buttons"
|
|
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
|
|
osmand:textAllCapsCompat="true"
|
|
|
|
osmand:typeface="@string/font_roboto_medium"
|
2017-03-21 18:02:11 +01:00
|
|
|
android:text="@string/analyze_on_map"/>
|
2017-03-08 09:33:11 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-02-15 17:15:23 +01:00
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
|
2017-03-21 18:02:11 +01:00
|
|
|
</LinearLayout>
|