OsmAnd/OsmAnd/res/layout/track_details.xml

139 lines
5.7 KiB
XML
Raw Normal View History

2017-03-03 21:27:39 +01:00
<?xml version="1.0" encoding="utf-8"?>
2017-03-03 21:28:25 +01:00
<FrameLayout
android:id="@+id/plan_route_info"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_transparent"
android:clickable="true"
xmlns:tools="http://schemas.android.com/tools">
2017-03-03 21:28:25 +01:00
<LinearLayout
android:id="@+id/main_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@drawable/bg_bottom_menu_dark"
android:clickable="true"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
2017-03-06 16:31:12 +01:00
android:id="@+id/y_axis"
2017-03-03 21:28:25 +01:00
android:layout_width="0dp"
android:layout_height="@dimen/list_item_height"
android:layout_weight="1"
android:orientation="horizontal"
android:minHeight="50dp"
android:background="?attr/selectableItemBackground"
android:gravity="center_vertical">
<ImageView
2017-03-06 16:31:12 +01:00
android:id="@+id/y_axis_icon"
2017-03-03 21:28:25 +01:00
android:layout_width="@dimen/standard_icon_size"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
android:src="@drawable/ic_action_altitude_average"/>
<TextView
2017-03-06 16:31:12 +01:00
android:id="@+id/y_axis_title"
2017-03-03 21:28:25 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
2017-03-27 17:15:54 +02:00
android:layout_marginRight="8dp"
2017-03-03 21:28:25 +01:00
android:textColor="?android:attr/textColorPrimary"
2017-03-09 19:32:55 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-03-03 21:28:25 +01:00
tools:text="@string/altitude"/>
<ImageView
2017-03-06 16:31:12 +01:00
android:id="@+id/y_axis_arrow"
2017-03-03 21:28:25 +01:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
2017-03-27 17:15:54 +02:00
android:layout_marginRight="8dp"
2017-03-03 21:28:25 +01:00
android:src="@drawable/ic_action_arrow_drop_down"/>
</LinearLayout>
<LinearLayout
2017-03-06 16:31:12 +01:00
android:id="@+id/x_axis"
2017-03-03 21:28:25 +01:00
android:layout_width="0dp"
android:layout_height="@dimen/list_item_height"
android:layout_weight="1"
android:orientation="horizontal"
android:minHeight="50dp"
android:background="?attr/selectableItemBackground"
android:gravity="center_vertical">
<View
android:id="@+id/divider_vertical"
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="?attr/dashboard_divider"
android:focusable="false"/>
<ImageView
2017-03-06 16:31:12 +01:00
android:id="@+id/x_axis_icon"
2017-03-03 21:28:25 +01:00
android:layout_width="@dimen/standard_icon_size"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/list_content_padding"
android:layout_marginRight="@dimen/list_content_padding"
2017-03-06 16:31:12 +01:00
android:src="@drawable/ic_action_marker_dark"/>
2017-03-03 21:28:25 +01:00
<TextView
2017-03-06 16:31:12 +01:00
android:id="@+id/x_axis_title"
2017-03-03 21:28:25 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
2017-03-27 17:15:54 +02:00
android:layout_marginRight="8dp"
2017-03-03 21:28:25 +01:00
android:textColor="?android:attr/textColorPrimary"
2017-03-09 19:32:55 +01:00
android:textSize="@dimen/default_desc_text_size"
2017-03-06 16:31:12 +01:00
tools:text="@string/distance"/>
2017-03-03 21:28:25 +01:00
<ImageView
2017-03-06 16:31:12 +01:00
android:id="@+id/x_axis_arrow"
2017-03-03 21:28:25 +01:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
2017-03-27 17:15:54 +02:00
android:layout_marginRight="8dp"
2017-03-03 21:28:25 +01:00
android:src="@drawable/ic_action_arrow_drop_down"/>
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/divider_bottom"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/dashboard_divider"
android:focusable="false"/>
<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"
android:layout_height="150dp"
android:layout_gravity="center_vertical"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</FrameLayout>