1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-15 19:27:31 +00:00
BarInsta/app/src/main/res/layout/fragment_direct_messages_settings.xml

231 lines
12 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2021-01-03 09:55:19 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2021-01-03 09:55:19 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-01-03 09:55:19 +00:00
android:focusableInTouchMode="true">
2021-01-03 09:55:19 +00:00
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
2021-01-03 09:55:19 +00:00
android:layout_height="wrap_content"
android:background="@null"
android:elevation="0dp"
app:elevation="0dp">
2021-01-03 09:55:19 +00:00
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-01-03 09:55:19 +00:00
app:layout_scrollFlags="scroll">
2021-01-03 09:55:19 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/settings_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2021-01-03 09:55:19 +00:00
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/title_edit_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:hint="@string/title"
android:visibility="gone"
app:boxBackgroundColor="@android:color/transparent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:suffixText="@string/save"
app:suffixTextColor="@color/blue_600"
tools:visibility="visible">
2021-01-03 09:55:19 +00:00
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/title_edit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autofillHints="no"
android:inputType="text"
android:maxLength="2200"
android:scrollHorizontally="false"
tools:text="test" />
2021-01-03 09:55:19 +00:00
</com.google.android.material.textfield.TextInputLayout>
2021-01-17 08:02:43 +00:00
<androidx.appcompat.widget.AppCompatTextView
2021-01-03 09:55:19 +00:00
android:id="@+id/mute_messages_label"
android:layout_width="0dp"
2021-01-17 08:02:43 +00:00
android:layout_height="0dp"
android:background="?selectableItemBackground"
2021-01-03 09:55:19 +00:00
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/mute_messages"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="?android:textColorPrimary"
app:layout_constraintBottom_toBottomOf="@id/mute_messages"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/mute_messages" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/mute_messages"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-01-17 08:02:43 +00:00
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
2021-01-03 09:55:19 +00:00
android:paddingStart="0dp"
android:paddingEnd="8dp"
app:layout_constraintBottom_toTopOf="@id/mute_mentions"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/title_edit_input_layout" />
2021-01-17 08:02:43 +00:00
<androidx.appcompat.widget.AppCompatTextView
2021-01-03 09:55:19 +00:00
android:id="@+id/mute_mentions_label"
android:layout_width="0dp"
2021-01-17 08:02:43 +00:00
android:layout_height="0dp"
2021-01-03 09:55:19 +00:00
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/mute_mentions"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="?android:textColorPrimary"
app:layout_constraintBottom_toBottomOf="@id/mute_mentions"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/mute_mentions" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/mute_mentions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-01-17 08:02:43 +00:00
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
2021-01-03 09:55:19 +00:00
android:paddingStart="0dp"
android:paddingEnd="8dp"
2021-01-19 12:46:39 +00:00
app:layout_constraintBottom_toTopOf="@id/approval_required"
2021-01-03 09:55:19 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/mute_messages" />
2021-01-19 12:46:39 +00:00
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/approval_required_label"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/approval_required_for_new_members"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="?android:textColorPrimary"
app:layout_constraintBottom_toBottomOf="@id/approval_required"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/approval_required" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/approval_required"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginEnd="8dp"
android:paddingStart="0dp"
android:paddingEnd="8dp"
app:layout_constraintBottom_toTopOf="@id/leave"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/mute_mentions" />
2021-01-17 08:02:43 +00:00
<androidx.appcompat.widget.AppCompatTextView
2021-01-03 09:55:19 +00:00
android:id="@+id/leave"
android:layout_width="match_parent"
2021-01-03 09:55:19 +00:00
android:layout_height="wrap_content"
2021-01-17 08:02:43 +00:00
android:layout_marginTop="4dp"
android:background="?selectableItemBackground"
2021-01-03 09:55:19 +00:00
android:gravity="center_vertical"
android:paddingStart="16dp"
2021-01-17 08:02:43 +00:00
android:paddingTop="12dp"
2021-01-03 09:55:19 +00:00
android:paddingEnd="16dp"
2021-01-17 08:02:43 +00:00
android:paddingBottom="12dp"
2021-01-03 09:55:19 +00:00
android:text="@string/dms_action_leave"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="@color/red_600"
2021-01-19 12:46:39 +00:00
app:layout_constraintBottom_toTopOf="@id/pending_members_header"
app:layout_constraintTop_toBottomOf="@id/approval_required" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/pending_members_header"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingTop="16dp"
android:paddingRight="16dp"
android:paddingBottom="8dp"
android:text="@string/requests"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body2"
android:textColor="?colorAccent"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@id/pending_members"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/leave" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/pending_members_admin_only"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="@string/admins_only"
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
app:layout_constraintBaseline_toBaselineOf="@id/pending_members_header"
app:layout_constraintEnd_toEndOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/pending_members"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-01-03 09:55:19 +00:00
app:layout_constraintBottom_toTopOf="@id/add_members"
2021-01-19 12:46:39 +00:00
app:layout_constraintTop_toBottomOf="@id/pending_members_header"
tools:itemCount="2"
tools:listitem="@layout/layout_dm_user_item" />
2021-01-03 09:55:19 +00:00
2021-01-17 08:02:43 +00:00
<androidx.appcompat.widget.AppCompatTextView
2021-01-03 09:55:19 +00:00
android:id="@+id/add_members"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-01-17 08:02:43 +00:00
android:layout_marginTop="4dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
2021-01-03 09:55:19 +00:00
android:paddingStart="16dp"
2021-01-17 08:02:43 +00:00
android:paddingTop="12dp"
2021-01-03 09:55:19 +00:00
android:paddingEnd="16dp"
2021-01-17 08:02:43 +00:00
android:paddingBottom="12dp"
2021-01-03 09:55:19 +00:00
android:text="@string/add_members"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
android:textColor="?android:textColorPrimary"
2021-01-17 08:02:43 +00:00
app:drawableStartCompat="@drawable/ic_add"
app:drawableTint="?android:textColorPrimary"
2021-01-03 09:55:19 +00:00
app:layout_constraintBottom_toBottomOf="parent"
2021-01-19 12:46:39 +00:00
app:layout_constraintTop_toBottomOf="@id/pending_members" />
<androidx.constraintlayout.widget.Group
android:id="@+id/pending_members_group"
android:layout_width="0dp"
android:layout_height="0dp"
android:visibility="gone"
app:constraint_referenced_ids="pending_members,pending_members_admin_only,pending_members_header"
tools:visibility="visible" />
2021-01-03 09:55:19 +00:00
<androidx.constraintlayout.widget.Group
android:id="@+id/group_settings"
android:layout_width="0dp"
android:layout_height="0dp"
2021-01-19 12:46:39 +00:00
app:constraint_referenced_ids="title_edit_input_layout, mute_mentions_label, mute_mentions, leave, add_members, approval_required, approval_required_label" />
2021-01-03 09:55:19 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/users"
android:layout_width="match_parent"
android:layout_height="match_parent"
2021-01-19 12:46:39 +00:00
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:listitem="@layout/layout_dm_user_item" />
2021-01-03 09:55:19 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>