mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-29 11:17:47 +00:00
ea374735e1
Previously, we were always rendering images as squares. Instead of doing that, we now render them as close to true-to-size as possible (within reasonable min/max width/height boundaries).
21 lines
1.0 KiB
XML
21 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.components.ThumbnailView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/image_view"
|
|
android:layout_width="@dimen/media_bubble_default_dimens"
|
|
android:layout_height="@dimen/media_bubble_default_dimens"
|
|
android:layout_marginBottom="5dp"
|
|
android:layout_gravity="center"
|
|
android:scaleType="centerCrop"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/conversation_item__mms_image_description"
|
|
android:visibility="gone"
|
|
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"
|
|
tools:src="@drawable/ic_video_light"
|
|
tools:visibility="visible" />
|