Signal-Android/app/src/main/res/layout/chat_wallpaper_selection_fragment.xml
Alex Hart f2a490b07e
Fix several conversation settings feedback issues.
* Mute icon in wrong location in RTL
* No exit animation when dismissing conversation settings
* Thumbnails flicker when you come back to conversation settings
* Rounded corners for mute dialog don't match other dialogs
* Mute button in note-to-self conversation settings
* Explore adding contact details to the contact bottom sheet
2021-06-28 11:11:57 -03:00

79 lines
3.8 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">
<include layout="@layout/dsl_settings_toolbar" />
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/chat_wallpaper_choose_from_photos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:background="?selectableItemBackground"
android:drawablePadding="26dp"
android:gravity="center_vertical"
android:minHeight="56dp"
android:paddingStart="@dimen/dsl_settings_gutter"
android:paddingEnd="@dimen/dsl_settings_gutter"
android:text="@string/ChatWallpaperSelectionFragment__choose_from_photos"
android:textAppearance="@style/Signal.Text.Body"
android:textColor="@color/signal_text_primary"
app:drawableStartCompat="@drawable/ic_photo_album_24"
app:drawableTint="@color/signal_icon_tint_primary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/chat_wallpaper_divider"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_marginTop="16dp"
android:background="@color/signal_inverse_transparent_05"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_choose_from_photos" />
<TextView
android:id="@+id/chat_wallpaper_presets"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:gravity="center_vertical"
android:minHeight="48dp"
android:paddingStart="@dimen/dsl_settings_gutter"
android:paddingTop="16dp"
android:paddingEnd="@dimen/dsl_settings_gutter"
android:paddingBottom="12dp"
android:text="@string/ChatWallpaperSelectionFragment__presets"
android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_divider" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/chat_wallpaper_recycler"
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="vertical"
android:paddingStart="@dimen/wallpaper_selection_gutter"
android:paddingEnd="@dimen/wallpaper_selection_gutter"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_presets"
app:spanCount="3"
tools:listitem="@layout/chat_wallpaper_selection_fragment_adapter_item" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>