2016-09-16 15:45:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2016-09-29 10:54:57 +00:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
2016-09-16 15:45:10 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-09-29 10:54:57 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2016-09-16 15:45:10 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".MainActivityMapFragment">
|
2016-09-16 15:45:10 +00:00
|
|
|
|
2016-09-29 10:54:57 +00:00
|
|
|
<!-- MAP VIEW -->
|
|
|
|
<org.osmdroid.views.MapView
|
|
|
|
android:id="@+id/track_map"
|
|
|
|
android:layout_width="fill_parent"
|
2016-12-05 14:10:24 +00:00
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:contentDescription="@string/descr_map_last_track" />
|
|
|
|
|
2016-09-29 10:54:57 +00:00
|
|
|
<!-- BOTTOM SHEET -->
|
|
|
|
<android.support.v4.widget.NestedScrollView
|
2016-12-05 14:10:24 +00:00
|
|
|
android:id="@+id/statistics_sheet"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:layout_width="@dimen/bottom_sheet_width"
|
2016-12-05 14:10:24 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:background="@color/trackbook_blue_85percent"
|
|
|
|
app:behavior_hideable="true"
|
|
|
|
app:behavior_peekHeight="132dp"
|
2016-09-29 10:54:57 +00:00
|
|
|
app:layout_behavior="android.support.design.widget.BottomSheetBehavior">
|
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_width="match_parent"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:layout_height="match_parent">
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2016-12-05 14:10:24 +00:00
|
|
|
<LinearLayout
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="vertical"
|
2016-12-05 14:10:24 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
|
|
android:scrollbars="vertical">
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<LinearLayout
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginBottom="8dp">
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/statistics_view"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Large.Inverse"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start|center"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:text="@string/statistics_sheet_h1_statistics"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_headline" />
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="end|center"
|
|
|
|
android:background="@drawable/ic_statistics_white_48dp"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_icon" />
|
|
|
|
</LinearLayout>
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="12dp">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_distance"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Small.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_distance" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/statistics_data_distance"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/statistics_sheet_p_default_data"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_distance_value" />
|
|
|
|
</LinearLayout>
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="4dp">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_steps"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Small.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_steps" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/statistics_data_steps"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/statistics_sheet_p_default_data"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_steps_value" />
|
|
|
|
</LinearLayout>
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="4dp">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_waypoints"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Small.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_waypoints" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/statistics_data_waypoints"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/statistics_sheet_p_default_data"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_waypoints_value" />
|
|
|
|
</LinearLayout>
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="8dp">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_duration"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Small.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_duration" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/statistics_data_duration"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/statistics_sheet_p_default_data"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_duration_value" />
|
|
|
|
</LinearLayout>
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="4dp">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_recording_start"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Small.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_recording_start" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/statistics_data_recording_start"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/statistics_sheet_p_default_data"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_recording_start_value" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginBottom="48dp">
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_recording_stop"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Small.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_recording_end" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/statistics_data_recording_stop"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/statistics_sheet_p_default_data"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium.Inverse"
|
|
|
|
android:contentDescription="@string/descr_statistics_sheet_p_recording_end_value" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-09-29 10:54:57 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
2016-09-29 10:54:57 +00:00
|
|
|
|
|
|
|
</android.support.v4.widget.NestedScrollView>
|
|
|
|
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|