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
|
|
|
|
2017-02-03 20:12:13 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<!-- MAP VIEW -->
|
|
|
|
<org.osmdroid.views.MapView
|
|
|
|
android:id="@+id/track_map"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:contentDescription="@string/descr_map_last_track" />
|
|
|
|
|
2017-02-17 08:58:37 +00:00
|
|
|
<include layout="@layout/fragment_main_track_onboarding" />
|
|
|
|
|
2017-02-15 14:29:21 +00:00
|
|
|
<!-- TRACK SELECTION -->
|
2017-02-03 20:12:13 +00:00
|
|
|
<LinearLayout
|
2017-02-17 08:58:37 +00:00
|
|
|
android:id="@+id/track_management_layout"
|
2017-02-03 20:12:13 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
|
|
|
android:orientation="horizontal"
|
2017-11-29 20:45:50 +00:00
|
|
|
android:background="@color/trackbook_white">
|
2017-02-03 20:12:13 +00:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/track_selector"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="start|center"
|
|
|
|
android:theme="@style/TrackbookAppTheme.PopupOverlay"
|
|
|
|
android:contentDescription="@string/descr_track_selector" />
|
2017-05-17 13:43:53 +00:00
|
|
|
<ImageButton
|
|
|
|
android:visibility="visible"
|
|
|
|
android:id="@+id/export_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|center"
|
2017-05-22 12:39:28 +00:00
|
|
|
android:paddingStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingEnd="@dimen/activity_horizontal_margin"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:src="@drawable/ic_file_download_grey_24dp"
|
2017-05-22 12:39:28 +00:00
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingBottom="8dp"
|
2017-05-17 13:43:53 +00:00
|
|
|
android:contentDescription="@string/descr_export_button" />
|
2017-02-03 20:12:13 +00:00
|
|
|
<ImageButton
|
2017-08-21 09:48:17 +00:00
|
|
|
android:visibility="visible"
|
2017-02-03 20:12:13 +00:00
|
|
|
android:id="@+id/delete_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|center"
|
2017-05-22 12:39:28 +00:00
|
|
|
android:paddingStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingBottom="8dp"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:src="@drawable/ic_delete_forever_grey_24dp"
|
2017-05-22 12:39:28 +00:00
|
|
|
android:background="@android:color/transparent"
|
2017-02-03 20:12:13 +00:00
|
|
|
android:contentDescription="@string/descr_delete_button" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:background="@color/trackbook_white_85percent"
|
2016-12-05 14:10:24 +00:00
|
|
|
app:behavior_hideable="true"
|
2017-10-16 08:20:59 +00:00
|
|
|
app:behavior_peekHeight="112dp"
|
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:scrollbars="vertical">
|
2016-09-29 10:54:57 +00:00
|
|
|
|
2017-01-20 12:34:37 +00:00
|
|
|
<LinearLayout
|
2017-06-07 11:07:48 +00:00
|
|
|
android:id="@+id/statistics_view"
|
2016-09-29 10:54:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-06-07 11:07:48 +00:00
|
|
|
android:paddingTop="@dimen/activity_vertical_margin"
|
|
|
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
|
|
|
android:paddingStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
|
|
android:orientation="horizontal">
|
2017-01-20 12:34:37 +00:00
|
|
|
<TextView
|
2017-10-16 08:20:59 +00:00
|
|
|
android:id="@+id/statistics_headline"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2017-01-20 12:34:37 +00:00
|
|
|
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
|
2017-10-16 08:20:59 +00:00
|
|
|
android:id="@+id/statistics_icon"
|
2017-01-20 12:34:37 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="end|center"
|
2017-10-16 08:20:59 +00:00
|
|
|
android:contentDescription="@string/descr_statistics_sheet_icon"
|
2017-11-28 21:02:45 +00:00
|
|
|
app:srcCompat="@drawable/ic_info_grey_24dp" />
|
2017-01-20 12:34:37 +00:00
|
|
|
</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"
|
2017-06-07 11:07:48 +00:00
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
2017-01-20 12:34:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_distance"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Small"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-06-07 11:07:48 +00:00
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
2017-01-20 12:34:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_steps"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Small"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-06-07 11:07:48 +00:00
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
2017-01-20 12:34:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_waypoints"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Small"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-06-07 11:07:48 +00:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
2017-01-20 12:34:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_duration"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Small"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-06-07 11:07:48 +00:00
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
2017-01-20 12:34:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:text="@string/statistics_sheet_p_recording_start"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Small"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-06-07 11:07:48 +00:00
|
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Small"
|
2017-01-20 12:34:37 +00:00
|
|
|
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"
|
2017-11-28 21:02:45 +00:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2017-01-20 12:34:37 +00:00
|
|
|
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>
|