### Configure Coil ImageLoader Source: https://github.com/zhanghai/appiconloader/blob/master/README.md Add the AppIconKeyer and AppIconFetcher to your Coil ImageLoader configuration. ```kotlin val iconSize = context.resources.getDimensionPixelSize(R.dimen.app_icon_size) Coil.setImageLoader( ImageLoader.Builder(context) .components { add(AppIconKeyer()) add(AppIconFetcher.Factory(iconSize, false, context)) } .build() ) ``` -------------------------------- ### Load app icons with Coil Source: https://github.com/zhanghai/appiconloader/blob/master/README.md Load an app icon in Coil by passing the PackageInfo object to the loadAny extension function. ```kotlin imageView.loadAny(packageInfo) ``` -------------------------------- ### Load app icons with Glide Source: https://github.com/zhanghai/appiconloader/blob/master/README.md Use the standard Glide API to load an app icon by passing a PackageInfo object. ```java GlideApp.with(imageView) .load(packageInfo) .into(imageView); ``` -------------------------------- ### Add AppIconLoader dependencies in Gradle Source: https://github.com/zhanghai/appiconloader/blob/master/README.md Include the necessary dependencies in your build.gradle file to use AppIconLoader with Glide, Coil, or directly. ```gradle // For using with Glide. implementation 'me.zhanghai.android.appiconloader:appiconloader-glide:1.5.0' // For using with Coil. implementation 'me.zhanghai.android.appiconloader:appiconloader-coil:1.5.0' // For using AppIconLoader directly. implementation 'me.zhanghai.android.appiconloader:appiconloader:1.5.0' // For using iconloaderlib directly. implementation 'me.zhanghai.android.appiconloader:appiconloader-iconloaderlib:1.5.0' ``` -------------------------------- ### Register AppIconModelLoader in Glide Source: https://github.com/zhanghai/appiconloader/blob/master/README.md Register the custom model loader within your AppGlideModule implementation to enable icon loading. ```java int iconSize = context.getResources().getDimensionPixelSize(R.dimen.app_icon_size); registry.prepend(PackageInfo.class, Bitmap.class, new AppIconModelLoader.Factory(iconSize, false, context)); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.