You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
slider.updateIcon(identifier, ImageHolder(bitmap)) doesn't display icon given as Bitmap
I just updated my code and update library from v6 to new kotlin v 8.0.2
and I have method to download png images from web to bitmap and then set it on ui thread to slider items.
Firstly I have PrimaryDrawerItem without icon, then my code download bitmap and after checking that bitmap is loaded I try to set it to slider:
if(slider.getDrawerItem(id)!=null && b!=null) { //b is bitmap
slider.updateIcon(id, ImageHolder(b))
MyLog.log("$id is set icon")
}
I can see in log next lines: (It means that identifier and bitmap is correct)
106 is set icon
103 is set icon
112 is set icon
but in fact my items have no icons.
For testing i tried to set icons from IdRes drawables and it work. But with bitmaps it seems them don't work.
first 2 items loaded by res id, next 3 items without icons is a set as bitmap icons...
Details
Used library version 8.0.2
Used support library version: AndroidX appcompat 1.1.0
Used gradle build tools version: not relavant
Used tooling / Android Studio version: not relavant
Other used libraries, potential conflicting libraries: not relavant
About this issue
slider.updateIcon(identifier, ImageHolder(bitmap))
doesn't display icon given as BitmapI just updated my code and update library from v6 to new kotlin v 8.0.2
and I have method to download png images from web to bitmap and then set it on ui thread to slider items.
Firstly I have PrimaryDrawerItem without icon, then my code download bitmap and after checking that bitmap is loaded I try to set it to slider:
I can see in log next lines: (It means that identifier and bitmap is correct)
but in fact my items have no icons.
For testing i tried to set icons from IdRes drawables and it work. But with bitmaps it seems them don't work.
first 2 items loaded by res id, next 3 items without icons is a set as bitmap icons...
Details
Checklist
The text was updated successfully, but these errors were encountered: