From ed848caac6e5fc3be616838ff2617f5d7acd902a Mon Sep 17 00:00:00 2001 From: Taras Smakula <tarassmakula@gmail.com> Date: Tue, 26 Dec 2023 16:20:54 +0200 Subject: [PATCH] Create ui for invites screen --- .../res/layout/dialog_fragment_invites.xml | 39 +++++++++++++++++++ core/src/main/res/values/strings.xml | 5 +++ 2 files changed, 44 insertions(+) create mode 100644 core/src/main/res/layout/dialog_fragment_invites.xml diff --git a/core/src/main/res/layout/dialog_fragment_invites.xml b/core/src/main/res/layout/dialog_fragment_invites.xml new file mode 100644 index 000000000..ea16a5ab1 --- /dev/null +++ b/core/src/main/res/layout/dialog_fragment_invites.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + + <com.google.android.material.appbar.MaterialToolbar + android:id="@+id/toolbar" + android:layout_width="0dp" + android:layout_height="?attr/actionBarSize" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:navigationIcon="?attr/homeAsUpIndicator" + app:titleCentered="true" /> + + <View + android:id="@+id/toolbarDivider" + android:layout_width="0dp" + android:layout_height="@dimen/divider_height" + android:background="@color/divider_color" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/toolbar" /> + + + <org.futo.circles.core.view.LoadingRecyclerView + android:id="@+id/rvInvites" + android:layout_width="0dp" + android:layout_height="0dp" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/toolbarDivider" /> + + +</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 6f6aaaf24..a1df169fc 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -145,4 +145,9 @@ <string name="create">Create</string> <string name="show">Show</string> <string name="gallery_invites_notification_format">Show %d Gallery invitations</string> + <string name="follow_requests">Follow requests</string> + <string name="group_invitations">Group invitations</string> + <string name="gallery_invitations">Gallery invitations</string> + <string name="circle_invitations">Circle invitations</string> + <string name="no_new_invitations_format">You don\'t have any %s</string> </resources> \ No newline at end of file -- GitLab