component_history.xml (2901B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:app="http://schemas.android.com/apk/res-auto" 7 xmlns:tools="http://schemas.android.com/tools" 8 android:id="@+id/history_wrapper" 9 android:layout_width="match_parent" 10 android:layout_height="match_parent"> 11 12 <ProgressBar 13 android:id="@+id/progress_bar" 14 style="@style/Widget.AppCompat.ProgressBar.Horizontal" 15 android:layout_width="match_parent" 16 android:layout_height="8dp" 17 android:indeterminate="true" 18 android:translationY="-3dp" 19 android:visibility="gone" 20 app:layout_constraintStart_toStartOf="parent" 21 app:layout_constraintTop_toTopOf="parent" /> 22 23 <View 24 android:id="@+id/top_spacer" 25 android:layout_width="match_parent" 26 android:layout_height="8dp" 27 app:layout_constraintTop_toTopOf="parent" 28 android:visibility="gone"/> 29 30 <include 31 android:id="@+id/recently_closed_nav_empty" 32 layout="@layout/recently_closed_nav_item" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 app:layout_constraintTop_toBottomOf="@+id/top_spacer" /> 36 37 <TextView 38 android:id="@+id/history_empty_view" 39 android:layout_width="0dp" 40 android:layout_height="0dp" 41 android:gravity="center" 42 android:text="@string/history_empty_message" 43 android:textAlignment="center" 44 android:textColor="?attr/textSecondary" 45 android:textSize="16sp" 46 android:visibility="gone" 47 android:accessibilityLiveRegion="polite" 48 app:layout_constraintBottom_toBottomOf="parent" 49 app:layout_constraintEnd_toEndOf="parent" 50 app:layout_constraintStart_toStartOf="parent" 51 app:layout_constraintTop_toBottomOf="@id/recently_closed_nav_empty" /> 52 53 <androidx.swiperefreshlayout.widget.SwipeRefreshLayout 54 android:id="@+id/swipe_refresh" 55 android:layout_width="match_parent" 56 android:layout_height="0dp" 57 app:layout_constraintBottom_toBottomOf="parent" 58 app:layout_constraintTop_toBottomOf="@id/recently_closed_nav_empty"> 59 60 <androidx.recyclerview.widget.RecyclerView 61 android:id="@+id/history_list" 62 android:layout_width="match_parent" 63 android:layout_height="match_parent" 64 android:scrollbars="vertical" 65 android:visibility="gone" 66 tools:listitem="@layout/history_list_item" /> 67 </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> 68 </androidx.constraintlayout.widget.ConstraintLayout>