Skip to content

Commit

Permalink
注释
Browse files Browse the repository at this point in the history
  • Loading branch information
allens committed Jul 6, 2020
1 parent 4551cc5 commit 1530a54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/starot/wechat/DefAct.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ class DefAct : AppCompatActivity() {

private fun startAct(index: Int, images: ArrayList<String>) {
val intent = Intent(this, DefLargerAct::class.java)
//传入图片信息 这里可所以类型
intent.putStringArrayListExtra(LargerAct.IMAGE, images)
//传入当前的 index 用于处理viewpager2 务必添加
intent.putExtra(LargerAct.INDEX, index)
//传入图片的位置信息,点击以后的动画效果需要 务必添加
intent.putParcelableArrayListExtra(
LargerAct.ORIGINAL,
arrayListOf(
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/starot/wechat/larger/DefLargerAct.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class DefLargerAct : LargerAct<String>() {
//Glide 加载图片的进度 具体可参考代码
ProgressInterceptor.addListener(data, object : ProgressListener {
override fun onProgress(progress: Int) {
Log.i(TAG, "图片加载进度 $progress ${Thread.currentThread().name}")
progressView.visibility = View.VISIBLE
progressView.progress = progress
}
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/layout/activity_def.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


<ImageView
android:scaleType="fitXY"
android:id="@+id/image_1"
android:layout_width="90dp"
android:layout_height="90dp"
Expand All @@ -19,7 +18,6 @@
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:scaleType="fitXY"
android:id="@+id/image_2"
android:layout_width="90dp"
android:layout_height="90dp"
Expand All @@ -29,7 +27,6 @@
app:layout_constraintTop_toTopOf="@+id/image_1" />

<ImageView
android:scaleType="fitXY"
android:id="@+id/image_3"
android:layout_width="90dp"
android:layout_height="90dp"
Expand All @@ -40,7 +37,6 @@


<ImageView
android:scaleType="fitXY"
android:id="@+id/image_4"
android:layout_width="90dp"
android:layout_height="90dp"
Expand Down

0 comments on commit 1530a54

Please sign in to comment.