Skip to content

Commit

Permalink
release: androidx-8.0.1
Browse files Browse the repository at this point in the history
fix transition
  • Loading branch information
SherlockGougou committed Nov 28, 2024
1 parent 5cd4766 commit a06a3c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ https://github.com/user-attachments/assets/070caa63-8e9f-4b11-9240-4cb56440d3c2
}
```
#### Step 2. 在你app的build.gradle中添加依赖:
当前最新版本为:```androidx-8.0.0```
当前最新版本为:```androidx-8.0.1```
```
dependencies {
// 本框架
implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-8.0.0'
implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-8.0.1'
// glide
implementation 'com.github.bumptech.glide:glide:4.16.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ class ImagePreviewActivity : AppCompatActivity(), Handler.Callback, View.OnClick
}
ImagePreview.instance.onPageFinishListener?.onFinish(this)
ImagePreview.instance.reset()
context.overridePendingTransition(R.anim.fade_in, R.anim.fade_out)
}

override fun onDestroy() {
Expand Down Expand Up @@ -643,17 +644,11 @@ class ImagePreviewActivity : AppCompatActivity(), Handler.Callback, View.OnClick
}

companion object {
fun activityStart(context: Context?) {
if (context == null) {
return
}
fun activityStart(context: Activity) {
val intent = Intent()
intent.setClass(context, ImagePreviewActivity::class.java)
// 默认动画
context.startActivity(intent)
if (context is Activity) {
context.overridePendingTransition(R.anim.fade_in, R.anim.fade_out)
}
context.overridePendingTransition(R.anim.fade_in, R.anim.fade_out)
}
}
}
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId "cc.shinichi.bigimageviewpager"
minSdkVersion 24
targetSdkVersion 34
versionCode 800
versionName "androidx-8.0.0"
versionCode 801
versionName "androidx-8.0.1"
signingConfig signingConfigs.debug
multiDexEnabled true
}
Expand Down Expand Up @@ -79,6 +79,6 @@ dependencies {
implementation "androidx.media3:media3-ui:1.4.1"

// library
// implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-7.3.0'
// implementation 'com.github.SherlockGougou:BigImageViewPager:androidx-8.0.1'
implementation project(':library')
}

0 comments on commit a06a3c6

Please sign in to comment.