OsmAnd/OsmAnd/res/layout/gpx_split_segment_fragment.xml
PavelRatushny 5651e9310c Fix sizes
2017-07-10 16:22:45 +03:00

556 lines
No EOL
24 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:osmand="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/list_item_divider"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/bg_color"
android:paddingLeft="16dp"
android:paddingRight="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/overview_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_split_interval"
android:layout_gravity="center_vertical"
android:layout_marginRight="12dp"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/overview_text"
android:background="@null"
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_overview"
tools:text="Overview"/>
<TextView
tools:text="1 of 4"
android:id="@+id/fragment_count_text"
android:background="@null"
android:layout_gravity="center_vertical"
android:gravity="right"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_overview"/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="28dp"
android:background="?attr/dashboard_divider"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="7dp"
android:layout_marginBottom="8dp">
<LinearLayout
android:layout_marginRight="3dp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/distance_or_timespan_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_track_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/distance_or_time_span_value"
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_split_segments_data"/>
<TextView
android:id="@+id/distance_or_time_span_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
tools:text="@string/distance"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_marginRight="3dp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/start_time_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_time_start_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/start_time_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:textColor="?android:attr/textColorPrimary"
android:textSize="@dimen/default_split_segments_data"
osmand:typeface="@string/font_roboto_medium"
tools:text="15:24:58" />
<TextView
android:id="@+id/start_date_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
tools:text="Aud 8, 2016"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/end_time_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_time_end_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/end_time_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="15:34:58"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<TextView
android:id="@+id/end_date_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
tools:text="Aug 8, 2016"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/elevation_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="28dp"
android:background="?attr/dashboard_divider"/>
<LinearLayout
android:id="@+id/elevation_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="7dp"
android:layout_marginBottom="8dp">
<LinearLayout
android:layout_marginRight="3dp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/average_altitude_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_altitude_average_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/average_altitude_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="25 000 m"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
android:text="@string/average"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_marginRight="3dp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/altitude_range_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_altitude_range_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/min_max_altitude_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="1/2335 m"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/min_altitude_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="1 m"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/max_altitude_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="2335 m"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<TextView
android:id="@+id/textView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp"
android:background="@null"
android:text="@string/min_max"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/ascent_descent_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_altitude_descent_ascent_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/ascent_descent_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="6280/6285 m"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/ascent_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="6280 m"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/descent_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="6285 m"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
android:text="@string/ascent_descent"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/speed_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginLeft="28dp"
android:background="?attr/dashboard_divider"/>
<LinearLayout
android:id="@+id/speed_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="7dp"
android:layout_marginBottom="8dp">
<LinearLayout
android:layout_marginRight="3dp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/moving_time_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_time_moving_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/moving_time_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="3:20:12"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
android:text="@string/moving_time"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_marginRight="3dp"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/average_speed_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_speed_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/average_speed_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="11.1 km/h"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
android:text="@string/average"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_marginTop="2dp"
android:id="@+id/max_speed_image"
android:layout_width="16dp"
android:layout_height="16dp"
tools:src="@drawable/ic_action_max_speed_16"
android:layout_marginRight="12dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/max_min_speed_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="93/2 kmg/h"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/max_speed_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="93 kmg/h"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/min_speed_value"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
tools:text="2 kmg/h"
android:textColor="?android:attr/textColorPrimary"
osmand:typeface="@string/font_roboto_medium"
android:textSize="@dimen/default_split_segments_data"/>
<TextView
android:id="@+id/max_min_speed_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:layout_marginTop="1dp"
android:text="@string/max_min"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_split_segments_sub"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>