mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-04 02:13:07 +02:00
e18017d500
Part of: #1613
138 lines
5.4 KiB
XML
138 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
Copyright 2010 Google Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/track_list_toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:navigationIcon="@drawable/ic_logo_color_24dp"
|
|
app:title="@string/app_name"
|
|
app:menu="@menu/track_list" />
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="?attr/actionBarSize"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/track_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="0.8" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/track_list_empty_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1.2">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/track_list_arrow_long"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="0dp">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="3" />
|
|
|
|
<ImageView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:contentDescription="@string/image_arrow"
|
|
android:paddingBottom="50dp"
|
|
android:src="@drawable/ic_arrow_long" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_above="@id/track_list_arrow_long">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3" />
|
|
|
|
<TextView
|
|
style="?attr/textAppearanceHeadline6"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="10"
|
|
android:gravity="end"
|
|
android:text="@string/track_list_empty_message" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.3" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.bottomappbar.BottomAppBar
|
|
android:id="@+id/bottom_app_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
app:fabAlignmentMode="end">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
android:id="@+id/aggregated_stats_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:icon="@drawable/ic_statistics_24dp"
|
|
app:iconTint="?attr/colorOnBackground" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/sensor_start_button"
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:icon="@drawable/ic_gps_off_24dp"
|
|
app:iconTint="?attr/colorOnBackground" />
|
|
|
|
</com.google.android.material.bottomappbar.BottomAppBar>
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/track_list_fab_action"
|
|
android:tint="@android:color/white"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@string/image_record"
|
|
android:src="@drawable/ic_baseline_record_24"
|
|
app:layout_anchor="@id/bottom_app_bar" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |