mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
preload a smaller resolution fullscreen image first
This commit is contained in:
parent
23dd5baaa4
commit
31f3396450
2 changed files with 3 additions and 3 deletions
|
@ -240,9 +240,10 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
Picasso.get()
|
||||
.load(File(medium.path))
|
||||
.centerInside()
|
||||
.fit()
|
||||
.resize(ViewPagerActivity.screenWidth / 2, ViewPagerActivity.screenHeight / 2)
|
||||
.into(view.photo_view, object : Callback {
|
||||
override fun onSuccess() {
|
||||
view.photo_view.isZoomable = false
|
||||
if (isFragmentVisible) {
|
||||
scheduleZoomableView()
|
||||
}
|
||||
|
|
|
@ -9,8 +9,7 @@
|
|||
<com.github.chrisbanes.photoview.PhotoView
|
||||
android:id="@+id/photo_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitCenter"/>
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
|
||||
android:id="@+id/subsampling_view"
|
||||
|
|
Loading…
Reference in a new issue