-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working sample on both simple loading and transition.
- Loading branch information
luca
committed
Dec 15, 2019
1 parent
4897ff7
commit cec598c
Showing
21 changed files
with
617 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
lib/src/main/java/com/kirkbushman/largeimageview/ImageReadyCallback.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.kirkbushman.largeimageview | ||
|
||
import java.io.File | ||
|
||
interface ImageReadyCallback { | ||
|
||
/** | ||
* The large image preloaded is ready, as a java File Object | ||
*/ | ||
fun onImageReady(file: File, forceImageShow: Boolean = false) | ||
|
||
/** | ||
* The process did return an error. | ||
*/ | ||
fun onImageErrored() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
lib/src/main/java/com/kirkbushman/largeimageview/OnViewsShownListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.kirkbushman.largeimageview | ||
|
||
import android.view.View | ||
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView | ||
|
||
interface OnViewsShownListener { | ||
|
||
/** | ||
* Called after the thumbnail view is attached as children and shown | ||
*/ | ||
fun onThumbnailViewShown(view: View) | ||
|
||
/** | ||
* Called after the image view is attached as children and shown | ||
*/ | ||
fun onImageViewShown(view: SubsamplingScaleImageView) | ||
|
||
/** | ||
* Called after the error view is attached as children and shown | ||
*/ | ||
fun onErrorViewShown(view: View) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
sampleapp/src/main/java/com/kirkbushman/largeimageview/sampleapp/AnimFirstActivity.kt
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
sampleapp/src/main/java/com/kirkbushman/largeimageview/sampleapp/AnimSecondActivity.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.