diff options
Diffstat (limited to 'mobile/android/fenix/app/src/main/res/layout/component_history.xml')
-rw-r--r-- | mobile/android/fenix/app/src/main/res/layout/component_history.xml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/mobile/android/fenix/app/src/main/res/layout/component_history.xml b/mobile/android/fenix/app/src/main/res/layout/component_history.xml new file mode 100644 index 0000000000..26ec213970 --- /dev/null +++ b/mobile/android/fenix/app/src/main/res/layout/component_history.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/history_wrapper" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ProgressBar + android:id="@+id/progress_bar" + style="@style/Widget.AppCompat.ProgressBar.Horizontal" + android:layout_width="match_parent" + android:layout_height="8dp" + android:indeterminate="true" + android:translationY="-3dp" + android:visibility="gone" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <View + android:id="@+id/top_spacer" + android:layout_width="match_parent" + android:layout_height="8dp" + app:layout_constraintTop_toTopOf="parent" + android:visibility="gone"/> + + <include + android:id="@+id/recently_closed_nav_empty" + layout="@layout/recently_closed_nav_item" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_constraintTop_toBottomOf="@+id/top_spacer" /> + + <TextView + android:id="@+id/history_empty_view" + android:layout_width="0dp" + android:layout_height="0dp" + android:gravity="center" + android:text="@string/history_empty_message" + android:textAlignment="center" + android:textColor="?attr/textSecondary" + android:textSize="16sp" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/recently_closed_nav_empty" /> + + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh" + android:layout_width="match_parent" + android:layout_height="0dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toBottomOf="@id/recently_closed_nav_empty"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/history_list" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scrollbars="vertical" + android:visibility="gone" + tools:listitem="@layout/history_list_item" /> + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> +</androidx.constraintlayout.widget.ConstraintLayout> |