364 lines
15 KiB
XML
364 lines
15 KiB
XML
<?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:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/bg_color">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.github.mikephil.charting.charts.LineChart
|
|
android:id="@+id/chart"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_gravity="center_vertical"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/gpx_join_gaps_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:minHeight="@dimen/card_row_min_height"
|
|
android:orientation="horizontal">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@+id/gpx_join_gaps_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding"
|
|
android:text="@string/join_segments"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="@dimen/default_list_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
android:id="@+id/gpx_join_gaps_switch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:focusable="false"
|
|
android:focusableInTouchMode="false"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/distance_time_span"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="13dp"
|
|
android:paddingBottom="11dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/distance_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:src="@drawable/ic_action_polygom_dark"/>
|
|
|
|
<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/distance_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
tools:text="40 km"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<TextView
|
|
android:id="@+id/distance_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:layout_marginTop="3dp"
|
|
android:text="@string/distance"
|
|
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/duration_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:src="@drawable/ic_action_time_start"/>
|
|
|
|
<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/duration_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
tools:text="3:32:44"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<TextView
|
|
android:id="@+id/duration_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:layout_marginTop="3dp"
|
|
android:text="@string/shared_string_time_span"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textSize="@dimen/default_sub_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/list_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<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:id="@+id/start_end_time"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="13dp"
|
|
android:paddingBottom="11dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/start_time_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:src="@drawable/ic_action_time_start"/>
|
|
|
|
<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/start_time_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
tools:text="15:04:58"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<TextView
|
|
android:id="@+id/start_date_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
tools:text="Aug 8, 2016"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<TextView
|
|
android:id="@+id/start_time_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/shared_string_start_time"
|
|
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/end_time_icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:src="@drawable/ic_action_time_start"/>
|
|
|
|
<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/end_time_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
tools:text="20:58:00"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<TextView
|
|
android:id="@+id/end_date_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
tools:text="Aug 8, 2016"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"/>
|
|
|
|
<TextView
|
|
android:id="@+id/end_time_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@null"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/shared_string_end_time"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textSize="@dimen/default_sub_text_size"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?attr/dashboard_divider"/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/details_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="48dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center">
|
|
|
|
<ImageButton
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
android:id="@+id/overflow_menu"
|
|
android:background="@null"
|
|
android:paddingRight="16dp"
|
|
android:paddingLeft="16dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
tools:src="@drawable/ic_overflow_menu_dark"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:background="?attr/selectableItemBackground"
|
|
android:id="@+id/split_interval"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:gravity="left|center_vertical"
|
|
android:textColor="?attr/color_dialog_buttons"
|
|
android:textSize="@dimen/default_sub_text_size"
|
|
osmand:textAllCapsCompat="true"
|
|
osmand:typeface="@string/font_roboto_medium"
|
|
android:text="@string/gpx_split_interval"/>
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:background="?attr/selectableItemBackground"
|
|
android:id="@+id/analyze_on_map"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="match_parent"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
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"
|
|
android:text="@string/analyze_on_map"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|