Skip to content

Commit

Permalink
changed order of bitmaps to a more predictable order, 1 = center, 2 =…
Browse files Browse the repository at this point in the history
… left then right, 3 = left then top right then bottom right, 4 = top left then top right then bottom left then bottom right
  • Loading branch information
martinseal committed Dec 22, 2019
1 parent c319481 commit 9ccc268
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ class MultiDrawable(private val bitmaps: ArrayList<Bitmap>) : Drawable() {
val bitmap3 = scaleCenterCrop(bitmaps[2], bounds.width(), bounds.height())
val bitmap4 = scaleCenterCrop(bitmaps[3], bounds.width(), bounds.height())
items.add(PhotoItem(bitmap1, Rect(0, 0, bounds.width() / 2, bounds.height() / 2)))
items.add(PhotoItem(bitmap2, Rect(0, bounds.height() / 2, bounds.width() / 2, bounds.height())))
items.add(PhotoItem(bitmap3, Rect(bounds.width() / 2, 0, bounds.width(), bounds.height() / 2)))
items.add(PhotoItem(bitmap3, Rect(0, bounds.height() / 2, bounds.width() / 2, bounds.height())))
items.add(PhotoItem(bitmap2, Rect(bounds.width() / 2, 0, bounds.width(), bounds.height() / 2)))
items.add(PhotoItem(bitmap4, Rect(bounds.width() / 2, bounds.height() / 2, bounds.width(), bounds.height())))
}
}
Expand Down

0 comments on commit 9ccc268

Please sign in to comment.