Fix url preview sizing

This commit is contained in:
ganfra 2022-01-18 19:26:23 +01:00
parent 7ff8483592
commit a9e7c45074
2 changed files with 4 additions and 0 deletions

View file

@ -21,4 +21,6 @@ interface MessageViewConfiguration {
var isFirstFromSender: Boolean
var isLastFromSender: Boolean
var showTimeAsOverlay: Boolean
var showNoBubble: Boolean
fun render()
}

View file

@ -9,6 +9,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="@dimen/chat_bubble_fixed_size"
android:orientation="vertical">
<ImageView
@ -17,6 +18,7 @@
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:importantForAccessibility="no"
android:layout_gravity="center"
android:maxHeight="200dp"
android:scaleType="fitXY"
tools:src="@tools:sample/backgrounds/scenic" />