Files
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

96 lines
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="de.schildbach.wallet.ui.dashpay.NotificationsFragment">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_primary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_marginStart="4dp"
app:layout_constraintTop_toTopOf="parent"
app:navigationIcon="@drawable/ic_arrow_back" />
<TextView
android:id="@+id/title"
style="@style/Headline3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
app:layout_constraintTop_toBottomOf="@id/toolbar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:text="@string/notifications_title" />
<androidx.appcompat.widget.AppCompatEditText
android:id="@+id/search"
style="@style/Body1.Medium"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="15dp"
android:background="@drawable/round_corners_white_bg"
android:elevation="4dp"
android:inputType="textEmailAddress"
android:lines="1"
android:paddingStart="60dp"
android:paddingLeft="28dp"
android:paddingRight="28dp"
app:layout_constraintTop_toBottomOf="@+id/title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<ImageView
android:id="@+id/icon"
android:layout_width="27.35dp"
android:layout_height="24dp"
android:layout_marginStart="20dp"
android:elevation="10dp"
app:layout_constraintBottom_toBottomOf="@id/search"
app:layout_constraintStart_toStartOf="@id/search"
app:layout_constraintTop_toTopOf="@id/search"
app:srcCompat="@drawable/ic_search" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/notifications_rv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:background="@drawable/white_background_rounded"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/search" />
<TextView
android:id="@+id/no_notifications_label"
style="@style/Caption.Tertiary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
app:layout_constraintTop_toBottomOf="@id/notifications_rv"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:text="@string/notifications_none_new" />
<!--include layout="@layout/user_search_empty_result" />
<include layout="@layout/user_search_loading" /-->
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>