Add support for sending borderless keyboard stickers.

This commit is contained in:
Greyson Parrelli
2020-07-08 08:54:47 -07:00
parent a9e30eefdc
commit c9d2cef58d
8 changed files with 121 additions and 16 deletions

View File

@@ -135,8 +135,8 @@
<ViewStub
android:id="@+id/sticker_view_stub"
android:layout_width="@dimen/media_bubble_sticker_dimens"
android:layout_height="@dimen/media_bubble_sticker_dimens"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout="@layout/conversation_item_received_sticker" />
<ViewStub

View File

@@ -73,8 +73,8 @@
<ViewStub
android:id="@+id/sticker_view_stub"
android:layout_width="@dimen/media_bubble_sticker_dimens"
android:layout_height="@dimen/media_bubble_sticker_dimens"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout="@layout/conversation_item_sent_sticker" />
<ViewStub
@@ -150,6 +150,7 @@
android:layout_marginStart="@dimen/message_bubble_horizontal_padding"
android:layout_marginTop="6dp"
android:layout_marginEnd="@dimen/message_bubble_horizontal_padding"
android:layout_gravity="end"
android:clipChildren="false"
android:clipToPadding="false"
android:gravity="end"

View File

@@ -15,9 +15,13 @@
<org.thoughtcrime.securesms.components.ThumbnailView
android:id="@+id/sticker_thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="@dimen/media_bubble_sticker_dimens"
android:layout_height="@dimen/media_bubble_sticker_dimens"
app:thumbnail_radius="0dp"
app:thumbnail_fit="fit_center"/>
app:thumbnail_fit="fit_center"
app:minWidth="@dimen/media_bubble_min_width"
app:maxWidth="@dimen/media_bubble_max_width"
app:minHeight="@dimen/media_bubble_min_height"
app:maxHeight="@dimen/media_bubble_max_height" />
</merge>