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

273 lines
14 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_background"
2021-01-12 14:28:52 -04:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/chat_wallpaper_preview_background" />
2021-01-12 14:28:52 -04:00
<ImageView
android:id="@+id/chat_wallpaper_preview_background"
android:layout_width="156dp"
android:layout_height="288dp"
android:layout_marginTop="16dp"
android:background="@color/signal_background_primary"
2021-01-12 14:28:52 -04:00
android:importantForAccessibility="no"
android:scaleType="fitXY"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/test_gradient" />
<View
android:id="@+id/chat_wallpaper_dim"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@color/black"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintEnd_toEndOf="@id/chat_wallpaper_preview_background"
app:layout_constraintStart_toStartOf="@id/chat_wallpaper_preview_background"
2021-01-12 14:28:52 -04:00
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_preview_top_bar"
tools:visibility="visible" />
<View
android:id="@+id/chat_wallpaper_preview_top_bar"
android:layout_width="156dp"
android:layout_height="28dp"
android:background="@drawable/chat_wallpaper_preview_top_bar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/chat_wallpaper_preview_background"
app:layout_constraintVertical_chainStyle="packed" />
2021-01-12 14:28:52 -04:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_top_bar_navigation"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_marginStart="4dp"
android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:layout_constraintStart_toStartOf="@id/chat_wallpaper_preview_top_bar"
app:srcCompat="@drawable/ic_arrow_left_24"
app:tint="@color/core_white" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_top_bar_portrait"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginStart="4dp"
android:layout_marginBottom="2dp"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:layout_constraintStart_toEndOf="@id/chat_wallpaper_preview_top_bar_navigation"
app:srcCompat="@drawable/circle_tintable"
app:tint="@color/core_white" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:layout_marginBottom="4dp"
android:text="@string/ChatWallpaperFragment__contact_name"
android:textAppearance="@style/Signal.Text.Body"
android:textColor="@color/core_white"
android:textSize="8sp"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:layout_constraintEnd_toStartOf="@id/chat_wallpaper_preview_top_bar_video"
app:layout_constraintStart_toEndOf="@id/chat_wallpaper_preview_top_bar_portrait"
tools:ignore="SmallSp" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_top_bar_video"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:layout_constraintEnd_toStartOf="@id/chat_wallpaper_preview_top_bar_voice"
app:srcCompat="@drawable/ic_video_solid_24"
app:tint="@color/core_white" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_top_bar_voice"
android:layout_width="10dp"
android:layout_height="10dp"
android:layout_marginEnd="6dp"
android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:layout_constraintEnd_toEndOf="@id/chat_wallpaper_preview_top_bar"
app:srcCompat="@drawable/ic_phone_right_solid_24"
app:tint="@color/core_white" />
2021-01-12 14:28:52 -04:00
<View
android:id="@+id/chat_wallpaper_preview_bottom_bar"
android:layout_width="156dp"
android:layout_height="24dp"
2021-01-12 14:28:52 -04:00
android:background="@drawable/chat_wallpaper_preview_bottom_bar"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_background"
2021-01-12 14:28:52 -04:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<View
android:id="@+id/chat_wallpaper_preview_bottom_bar_input"
android:layout_width="0dp"
android:layout_height="14dp"
android:layout_marginStart="8dp"
android:background="@drawable/chat_wallpaper_preview_input"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintEnd_toStartOf="@id/chat_wallpaper_preview_bottom_bar_plus"
app:layout_constraintStart_toStartOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintTop_toTopOf="@id/chat_wallpaper_preview_bottom_bar" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_bottom_bar_plus"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:background="@drawable/circle_tintable"
android:padding="2dp"
app:backgroundTint="@color/signal_accent_primary"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintEnd_toEndOf="@id/chat_wallpaper_preview_bottom_bar"
app:layout_constraintStart_toEndOf="@id/chat_wallpaper_preview_bottom_bar_input"
app:layout_constraintTop_toTopOf="@id/chat_wallpaper_preview_bottom_bar"
app:srcCompat="@drawable/ic_plus_24"
app:tint="@color/core_white" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/chat_wallpaper_preview_today"
android:layout_width="24dp"
android:layout_height="10dp"
android:layout_marginTop="12dp"
app:layout_constraintEnd_toEndOf="@id/chat_wallpaper_preview_background"
app:layout_constraintStart_toStartOf="@id/chat_wallpaper_preview_background"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:srcCompat="@drawable/chat_wallpaper_preview_bubble_10"
app:tint="@color/signal_background_tertiary" />
2021-01-12 14:28:52 -04:00
<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_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:srcCompat="@drawable/chat_wallpaper_preview_bubble_10"
2021-01-12 14:28:52 -04:00
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_toBottomOf="@id/chat_wallpaper_preview_top_bar"
app:srcCompat="@drawable/chat_wallpaper_preview_bubble_10"
app:tint="@color/signal_background_secondary" />
2021-01-12 14:28:52 -04:00
<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:visibility="gone"
tools:visibility="visible"
2021-01-12 14:28:52 -04:00
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"
android:visibility="gone"
2021-01-12 14:28:52 -04:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/chat_wallpaper_divider"
tools:visibility="visible" />
2021-01-12 14:28:52 -04:00
<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>