264 lines
No EOL
14 KiB
XML
264 lines
No EOL
14 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.design.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="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="match_parent"
|
|
tools:context=".MainActivityMapFragment">
|
|
|
|
<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" />
|
|
|
|
<include layout="@layout/fragment_main_track_onboarding" />
|
|
|
|
<!-- TRACK SELECTION -->
|
|
<LinearLayout
|
|
android:id="@+id/track_management_layout"
|
|
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"
|
|
android:background="@color/trackbook_blue_85percent">
|
|
<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" />
|
|
<ImageButton
|
|
android:visibility="visible"
|
|
android:id="@+id/export_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|center"
|
|
android:paddingStart="@dimen/activity_horizontal_margin"
|
|
android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
android:src="@drawable/ic_file_download_white_24dp"
|
|
android:background="@android:color/transparent"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:contentDescription="@string/descr_export_button" />
|
|
<ImageButton
|
|
android:visibility="visible"
|
|
android:id="@+id/delete_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="end|center"
|
|
android:paddingStart="@dimen/activity_horizontal_margin"
|
|
android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:src="@drawable/ic_delete_forever_white_24dp"
|
|
android:background="@android:color/transparent"
|
|
android:contentDescription="@string/descr_delete_button" />
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- BOTTOM SHEET -->
|
|
<android.support.v4.widget.NestedScrollView
|
|
android:id="@+id/statistics_sheet"
|
|
android:layout_width="@dimen/bottom_sheet_width"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="bottom"
|
|
android:background="@color/trackbook_blue_85percent"
|
|
app:behavior_hideable="true"
|
|
app:behavior_peekHeight="132dp"
|
|
app:layout_behavior="android.support.design.widget.BottomSheetBehavior">
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:scrollbars="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/statistics_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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">
|
|
<TextView
|
|
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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin">
|
|
<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"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
android:layout_marginEnd="@dimen/activity_horizontal_margin"
|
|
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>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</android.support.v4.widget.NestedScrollView>
|
|
|
|
</android.support.design.widget.CoordinatorLayout> |