Github

Github 好用分享Android ZoomInImageView

1.先導入函示庫(build.gradle: Module)

dependencies {
    implementation 'com.zolad:zoominimageview:1.0.0''
}

2.程式碼範例

直接在XML聲明

<com.zolad.zoominimageview.ZoomInImageView
    android:id="@+id/image"
    android:src="@drawable/image7"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

3.效果展示

發表迴響