Skip to content

Commit 9ccc268

Browse files
committed
changed order of bitmaps to a more predictable order, 1 = center, 2 = left then right, 3 = left then top right then bottom right, 4 = top left then top right then bottom left then bottom right
1 parent c319481 commit 9ccc268

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

multiimageview/src/main/java/com/stfalcon/multiimageview/MultiImageView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ class MultiDrawable(private val bitmaps: ArrayList<Bitmap>) : Drawable() {
145145
val bitmap3 = scaleCenterCrop(bitmaps[2], bounds.width(), bounds.height())
146146
val bitmap4 = scaleCenterCrop(bitmaps[3], bounds.width(), bounds.height())
147147
items.add(PhotoItem(bitmap1, Rect(0, 0, bounds.width() / 2, bounds.height() / 2)))
148-
items.add(PhotoItem(bitmap2, Rect(0, bounds.height() / 2, bounds.width() / 2, bounds.height())))
149-
items.add(PhotoItem(bitmap3, Rect(bounds.width() / 2, 0, bounds.width(), bounds.height() / 2)))
148+
items.add(PhotoItem(bitmap3, Rect(0, bounds.height() / 2, bounds.width() / 2, bounds.height())))
149+
items.add(PhotoItem(bitmap2, Rect(bounds.width() / 2, 0, bounds.width(), bounds.height() / 2)))
150150
items.add(PhotoItem(bitmap4, Rect(bounds.width() / 2, bounds.height() / 2, bounds.width(), bounds.height())))
151151
}
152152
}

0 commit comments

Comments
 (0)