forked from upstream-mirrors/OpenTracks
107 lines
4.0 KiB
XML
107 lines
4.0 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="50dp"
|
|
android:clipToPadding="false">
|
|
|
|
<ListView
|
|
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="12dp">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.7" />
|
|
|
|
<ImageView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.3"
|
|
android:paddingBottom="50dp"
|
|
android:contentDescription="@string/image_arrow"
|
|
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"
|
|
app:logo="@drawable/ic_logo_color_24dp"
|
|
app:menu="@menu/track_list" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/track_list_fab_action"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_baseline_record_24"
|
|
android:contentDescription="@string/image_record"
|
|
app:layout_anchor="@id/bottom_app_bar" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |