Signal-Android/app/src/main/res/layout/chat_wallpaper_fragment.xml

162 lines
7.9 KiB
XML
Raw Normal View History

2021-01-12 14:28:52 -04:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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:fillViewport="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:id="@+id/chat_wallpaper_preview_lightbox"
android:layout_width="0dp"
android:layout_height="320dp"
android:background="@color/signal_background_tertiary"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/chat_wallpaper_preview_top_bar"
android:layout_width="156dp"
android:layout_height="30dp"
android:background="@drawable/chat_wallpaper_preview_top_bar"
app:layout_constraintBottom_toTopOf="@id/chat_wallpaper_preview_background"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed" />
<ImageView
android:id="@+id/chat_wallpaper_preview_background"
android:layout_width="156dp"
android:layout_height="228dp"
android:importantForAccessibility="no"
android:scaleType="fitXY"
android:src="@drawable/test_gradient"
app:layout_constraintBottom_toTopOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_preview_top_bar"
tools:background="@color/signal_background_primary" />
<View
android:id="@+id/chat_wallpaper_preview_bottom_bar"
android:layout_width="156dp"
android:layout_height="30dp"
android:background="@drawable/chat_wallpaper_preview_bottom_bar"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_lightbox"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_preview_background" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_bubble_1"
android:layout_width="100dp"
android:layout_height="30dp"
android:layout_marginStart="8dp"
android:layout_marginTop="30dp"
app:layout_constraintStart_toStartOf="@id/chat_wallpaper_preview_background"
app:layout_constraintTop_toTopOf="@id/chat_wallpaper_preview_background"
app:srcCompat="@drawable/chat_wallpaper_preview_bubble"
app:tint="@color/signal_accent_primary" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_bubble_2"
android:layout_width="100dp"
android:layout_height="30dp"
android:layout_marginTop="66dp"
android:layout_marginEnd="8dp"
app:layout_constraintEnd_toEndOf="@id/chat_wallpaper_preview_background"
app:layout_constraintTop_toTopOf="@id/chat_wallpaper_preview_background"
app:srcCompat="@drawable/chat_wallpaper_preview_bubble"
app:tint="@color/signal_background_tertiary" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/chat_wallpaper_preview_outline"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintEnd_toEndOf="@id/chat_wallpaper_preview_background"
app:layout_constraintStart_toStartOf="@id/chat_wallpaper_preview_background"
app:layout_constraintTop_toTopOf="@id/chat_wallpaper_preview_top_bar" />
<TextView
android:id="@+id/chat_wallpaper_set_wallpaper"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/ChatWallpaperFragment__set_wallpaper"
android:textAppearance="@style/Signal.Text.Body"
android:textColor="@color/signal_text_primary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_preview_lightbox" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/chat_wallpaper_dark_theme_dims_wallpaper"
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/ChatWallpaperFragment__dark_theme_dims_wallpaper"
android:textAppearance="@style/Signal.Text.Body"
android:textColor="@color/signal_text_primary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_set_wallpaper" />
<View
android:id="@+id/chat_wallpaper_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="16dp"
android:background="@color/signal_inverse_transparent_15"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_dark_theme_dims_wallpaper" />
<TextView
android:id="@+id/chat_wallpaper_clear_wallpaper"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/ChatWallpaperFragment__clear_wallpaper"
android:textAppearance="@style/Signal.Text.Body"
android:textColor="@color/signal_text_primary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_divider" />
<TextView
android:id="@+id/chat_wallpaper_reset_all_wallpapers"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="?selectableItemBackground"
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/ChatWallpaperFragment__reset_all_wallpapers"
android:textAppearance="@style/Signal.Text.Body"
android:textColor="@color/signal_text_primary"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_clear_wallpaper"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>