fix to show missing preview files.

solution: SimpleDraweeView does not support wrap_content for layout_width or layout_height attributes.
see https://frescolib.org/docs/using-simpledraweeview.html

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2021-04-23 00:53:46 +02:00
parent 3f6f492143
commit 1296b8854e
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
3 changed files with 11 additions and 6 deletions

View File

@ -24,6 +24,7 @@ Types of changes can be: Added/Changed/Deprecated/Removed/Fixed/Security
- remove all "chat via"-links from phonebook when sync is disabled
- fix to show avatars for incoming pictures in group chats (@starypatyk)
- do not allow selecting files in files browser that are not allowed to be reshared
- fix to show all file previews
## [11.1.0] - 2021-03-12
### Added

View File

@ -58,11 +58,13 @@
app:layout_alignSelf="flex_start"
android:adjustViewBounds="true">
<!-- SimpleDraweeView does not support wrap_content for layout_width or layout_height attributes! -->
<com.facebook.drawee.view.SimpleDraweeView
android:id="@id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="fitStart"
app:roundedCornerRadius="6dp"
tools:src="@drawable/ic_call_black_24dp" />
<ProgressBar

View File

@ -50,11 +50,13 @@
app:layout_alignSelf="flex_start"
android:adjustViewBounds="true">
<!-- SimpleDraweeView does not support wrap_content for layout_width or layout_height attributes! -->
<com.facebook.drawee.view.SimpleDraweeView
android:id="@id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:layout_width="100dp"
android:layout_height="100dp"
android:scaleType="fitEnd"
app:roundedCornerRadius="6dp"
tools:src="@drawable/ic_call_black_24dp" />
<ProgressBar