diff options
Diffstat (limited to 'mobile/android/fenix/app/src/main/res/layout/component_saved_logins.xml')
-rw-r--r-- | mobile/android/fenix/app/src/main/res/layout/component_saved_logins.xml | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/mobile/android/fenix/app/src/main/res/layout/component_saved_logins.xml b/mobile/android/fenix/app/src/main/res/layout/component_saved_logins.xml new file mode 100644 index 0000000000..a37ef19382 --- /dev/null +++ b/mobile/android/fenix/app/src/main/res/layout/component_saved_logins.xml @@ -0,0 +1,75 @@ +<?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/. --> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/saved_logins_wrapper" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ProgressBar + android:id="@+id/progress_bar" + style="@style/Widget.AppCompat.ProgressBar.Horizontal" + android:indeterminate="true" + android:layout_width="match_parent" + android:layout_height="8dp" + android:translationY="-3dp" + android:visibility="gone" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" /> + + <androidx.appcompat.widget.LinearLayoutCompat + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/saved_passwords_empty_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:visibility="gone" + android:layout_margin="@dimen/exceptions_description_margin"> + + <TextView + android:id="@+id/saved_passwords_empty_message" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="4dp" + android:text="@string/preferences_passwords_saved_logins_description_empty_text_2" + android:textColor="?attr/textSecondary" + android:textSize="16sp" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintStart_toStartOf="parent" /> + + <org.mozilla.fenix.utils.LinkTextView + android:id="@+id/saved_passwords_empty_learn_more" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="4dp" + android:text="@string/preferences_passwords_saved_logins_description_empty_learn_more_link_2" + android:textColor="?attr/textSecondary" + android:textSize="16sp" + app:layout_constraintTop_toBottomOf="@id/saved_passwords_empty_message" /> + </androidx.constraintlayout.widget.ConstraintLayout> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/saved_logins_list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:visibility="gone" + tools:listitem="@layout/logins_item" /> + + <include + android:id="@+id/add_login_button" + layout="@layout/layout_add_login" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="0" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toBottomOf="@id/saved_logins_list" /> + + </androidx.appcompat.widget.LinearLayoutCompat> + +</FrameLayout> |