-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
166 additions
and
91 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
42 changes: 42 additions & 0 deletions
42
app/src/main/java/github/xuqk/kdimageviewer/sample/MainActivityJava.java
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,42 @@ | ||
package github.xuqk.kdimageviewer.sample; | ||
|
||
import android.os.Bundle; | ||
import android.widget.ImageView; | ||
|
||
import androidx.annotation.Nullable; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import github.xuqk.kdimageviewer.KDImageViewer; | ||
import github.xuqk.kdimageviewer.KDslKt; | ||
import kotlin.Unit; | ||
import kotlin.jvm.functions.Function1; | ||
|
||
/** | ||
* Created By:XuQK | ||
* Created Date:2020/7/9 15:13 | ||
* Creator Email:[email protected] | ||
* Description: | ||
*/ | ||
|
||
class MainActivityJava extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(@Nullable Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
KDImageViewer kd = KDslKt.kdImageViewer(new Function1<KDImageViewer, Unit>() { | ||
@Override | ||
public Unit invoke(KDImageViewer kdImageViewer) { | ||
|
||
return null; | ||
} | ||
}); | ||
|
||
kd.setSrcImageViewFetcher(new Function1<Integer, ImageView>() { | ||
@Override | ||
public ImageView invoke(Integer integer) { | ||
return null; | ||
} | ||
}); | ||
} | ||
} |
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
1 change: 0 additions & 1 deletion
1
kdimageviewer/src/main/java/github/xuqk/kdimageviewer/KDCoverModule.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
Oops, something went wrong.