![Screenshot](https://private-user-images.githubusercontent.com/56149022/258576581-02a030ac-6649-4de6-b0aa-d39c1ea6d993.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYxMTE1NjIsIm5iZiI6MTcxNjExMTI2MiwicGF0aCI6Ii81NjE0OTAyMi8yNTg1NzY1ODEtMDJhMDMwYWMtNjY0OS00ZGU2LWIwYWEtZDM5YzFlYTZkOTkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTE5VDA5MzQyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlMzI5MWI3ZDdjYmYyZjJlZmY3NmUyM2M5ZmUwODcwOWY4ZWZmN2JjNGM4MjJiYTQxYzQwNTk0MDVmMjc2ZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rG9uNCDdQCm-m2lM1UU7-QnHRYbZkExTFQoLHAoJl5I)
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Areeb786123:ImagePreviewLibraryByAreeb:Tag'
}
override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) _binding = ActivityMainBinding.inflate(layoutInflater) setContentView(_binding!!.root) ImagePreview.setImageView(binding.imageName, imageUrl, binding.progress) })
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="200dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ProgressBar
android:id="@+id/progress"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginTop="40dp"
/>
<ImageView
android:id="@+id/imageName"
android:layout_width="match_parent"
android:layout_height="200dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>