Fix scrolling jank when viewing images

This commit is contained in:
Moez Bhatti
2018-06-08 23:20:59 -04:00
parent 9df79c0ded
commit 87e35604fa
@@ -19,18 +19,16 @@
--> -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content" android:layout_width="280dp"
android:layout_height="wrap_content" android:layout_height="280dp"
android:layout_marginTop="2dp"> android:layout_marginTop="2dp">
<common.widget.BubbleImageView <common.widget.BubbleImageView
android:id="@+id/thumbnail" android:id="@+id/thumbnail"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:maxHeight="320dp" android:scaleType="centerCrop"
android:maxWidth="280dp"
android:scaleType="fitStart"
tools:src="@tools:sample/backgrounds/scenic" /> tools:src="@tools:sample/backgrounds/scenic" />
<ImageView <ImageView