Adjust wallpaper preview.

This commit is contained in:
Alex Hart
2022-06-17 09:50:11 -03:00
committed by Greyson Parrelli
parent 539a0182e0
commit 008f153b66
2 changed files with 11 additions and 3 deletions

View File

@@ -27,8 +27,9 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/chat_wallpaper_preview_background"
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Signal.WallpaperPreview.ChatContainer"
android:layout_width="156dp"
android:layout_height="288dp"
android:layout_marginTop="16dp"
@@ -47,7 +48,7 @@
android:layout_height="0dp"
android:background="@color/black"
android:visibility="gone"
app:layout_constraintBottom_toTopOf="@id/chat_wallpaper_preview_bottom_bar"
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_toBottomOf="@id/chat_wallpaper_preview_top_bar"
@@ -135,7 +136,6 @@
android:id="@+id/chat_wallpaper_preview_bottom_bar"
android:layout_width="156dp"
android:layout_height="24dp"
android:background="@drawable/chat_wallpaper_preview_bottom_bar"
app:layout_constraintBottom_toBottomOf="@id/chat_wallpaper_preview_background"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />

View File

@@ -523,6 +523,14 @@
<item name="cornerSizeBottomRight">12dp</item>
</style>
<style name="ShapeAppearanceOverlay.Signal.WallpaperPreview.ChatContainer" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSizeTopRight">8dp</item>
<item name="cornerSizeTopLeft">8dp</item>
<item name="cornerSizeBottomLeft">8dp</item>
<item name="cornerSizeBottomRight">8dp</item>
</style>
<style name="ShapeAppearanceOverlay.Signal.MediaSelection" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSizeTopRight">10dp</item>