trkpt/app/src/main/res/layout/track_statistics.xml

310 lines
16 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2020-01-02 17:00:37 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/statistics_view"
android:layout_width="match_parent"
2020-01-02 17:00:37 +00:00
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true">
<androidx.constraintlayout.widget.Group
android:id="@+id/elevation_data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-01-02 17:00:37 +00:00
app:constraint_referenced_ids="statistics_p_positive_elevation,statistics_data_positive_elevation,statistics_p_negative_elevation,statistics_data_negative_elevation,statistics_p_max_altitude,statistics_data_max_altitude,statistics_p_min_altitude,statistics_data_min_altitude" />
<androidx.constraintlayout.widget.Group
2020-01-02 17:00:37 +00:00
android:id="@+id/management_icons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-01-02 17:00:37 +00:00
android:visibility="gone"
app:constraint_referenced_ids="delete_button,edit_button" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_track_name_headline"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginTop="16dp"
2020-01-02 17:00:37 +00:00
android:ellipsize="end"
android:singleLine="true"
android:textAllCaps="true"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
android:textStyle="bold"
2020-01-02 17:00:37 +00:00
app:layout_constraintEnd_toStartOf="@+id/edit_button"
app:layout_constraintStart_toStartOf="parent"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="parent"
tools:text="@string/sample_text_track_name" />
<ImageButton
android:id="@+id/delete_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@color/trackbook_transparent"
android:contentDescription="@string/descr_statistics_sheet_delete_button"
app:layout_constraintBottom_toBottomOf="@+id/edit_button"
app:layout_constraintEnd_toStartOf="@+id/share_button"
app:layout_constraintTop_toTopOf="@+id/edit_button"
app:srcCompat="@drawable/ic_delete_24dp" />
2020-01-02 17:00:37 +00:00
<ImageButton
android:id="@+id/edit_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-03-20 14:46:32 +00:00
android:backgroundTint="@color/trackbook_transparent"
2020-01-02 17:00:37 +00:00
android:contentDescription="@string/descr_statistics_sheet_edit_button"
app:layout_constraintBottom_toBottomOf="@+id/statistics_track_name_headline"
app:layout_constraintEnd_toStartOf="@+id/delete_button"
app:layout_constraintTop_toTopOf="@+id/statistics_track_name_headline"
app:srcCompat="@drawable/ic_edit_24dp" />
<ImageButton
android:id="@+id/share_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@color/trackbook_transparent"
android:contentDescription="@string/descr_statistics_sheet_share_button"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="@+id/statistics_track_name_headline"
app:layout_constraintEnd_toEndOf="parent"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_track_name_headline"
app:srcCompat="@drawable/ic_share_24dp" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:text="@string/statistics_sheet_p_distance"
2020-01-02 17:00:37 +00:00
android:textAllCaps="false"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_track_name_headline"
app:layout_constraintTop_toBottomOf="@+id/statistics_track_name_headline" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_distance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_distance"
app:layout_constraintStart_toEndOf="@+id/statistics_p_distance"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_distance"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_steps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_steps"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_distance"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_distance" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_steps"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_steps"
app:layout_constraintStart_toEndOf="@+id/statistics_p_steps"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_steps"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_waypoints"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_waypoints"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_steps"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_steps" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_waypoints"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_waypoints"
app:layout_constraintStart_toEndOf="@+id/statistics_p_waypoints"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_waypoints"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_duration"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_waypoints"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_waypoints" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_duration"
app:layout_constraintStart_toEndOf="@+id/statistics_p_duration"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_duration"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_recording_start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_recording_start"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_duration"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_duration" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_recording_start"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_recording_start"
app:layout_constraintStart_toEndOf="@+id/statistics_p_recording_start"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_recording_start"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_recording_stop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_recording_stop"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_recording_start"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_recording_start" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_recording_stop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_recording_stop"
app:layout_constraintStart_toEndOf="@+id/statistics_p_recording_stop"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_recording_stop"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_positive_elevation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_positive_elevation"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_recording_stop"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_recording_stop" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_positive_elevation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_positive_elevation"
app:layout_constraintStart_toEndOf="@+id/statistics_p_positive_elevation"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_positive_elevation"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_negative_elevation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_negative_elevation"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_positive_elevation"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_positive_elevation" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_negative_elevation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_negative_elevation"
app:layout_constraintStart_toEndOf="@+id/statistics_p_negative_elevation"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_negative_elevation"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_max_altitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/statistics_sheet_p_max_altitude"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintStart_toStartOf="@+id/statistics_p_negative_elevation"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_negative_elevation" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_max_altitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_max_altitude"
app:layout_constraintStart_toEndOf="@+id/statistics_p_max_altitude"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_max_altitude"
tools:text="@string/sample_text_default_data" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_p_min_altitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
2020-01-02 17:00:37 +00:00
android:layout_marginBottom="16dp"
android:text="@string/statistics_sheet_p_min_altitude"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="@color/text_lightweight"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/statistics_p_max_altitude"
app:layout_constraintTop_toBottomOf="@+id/statistics_p_max_altitude" />
2020-01-02 17:00:37 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/statistics_data_min_altitude"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
2020-01-02 17:00:37 +00:00
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/text_default"
app:layout_constraintBottom_toBottomOf="@+id/statistics_p_min_altitude"
app:layout_constraintStart_toEndOf="@+id/statistics_p_min_altitude"
2020-01-02 17:00:37 +00:00
app:layout_constraintTop_toTopOf="@+id/statistics_p_min_altitude"
tools:text="@string/sample_text_default_data" />
</androidx.constraintlayout.widget.ConstraintLayout>