XDownloader is modular library for android apps to provide ease in downloading files or loading images in ImageView. XDownloader can be customizable with various methods.
This is the Sample Project which is using this library
Add this project as modular dependency in your android application.
OR
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.asadd00:XDownloader:1.0'
}
Generally this library can be used in these ways
To load image in ImageView
Xdownloader.loadImage(context).load(ImageView, Url)
To download any file
Xdownloader.downloadFile(context).download(url, fileType)
Xdownloader
.loadImage(context)
.placeholder(int)
.setCacheEnabled(boolean)
.setCacheSize(int)
.load(ImageView, Url)
Xdownloader
.downloadFile(context)
.setFileName(string)
.setNotificationEnabled(boolean)
.setOnDownloadResultListener(OnDownloadResultListener)
.download(url, fileType)
- Kotlin - Android offical language
- Muhammad Asadullah - Whole work