-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update user profile image icon #1428
Comments
@GutoMartins019 you had an image prior to setting the bitmap? And your item has an identifier set? |
Yes, i had a image before update, it was setted on create. My item have a identifier, a int value. This is how i made: Added this ProfileDrawerItem to my AccountHeaderBuilder And now i want to update the profile imagem like this:
|
@GutoMartins019 you are mixing drawer and header. If you want to update a profile (an item of the Which would result in something like this, to update the icon: profile5.withIcon(BitmapFactory.decodeResource(getResources(), R.drawable.leak_canary_icon));
headerResult.updateProfile(profile5); |
@mikepenz Thanks for help me! Sorry for mixing things =/. Now its working perfect! |
Hi Mike,
First of all, thanks for your amazing job!
I am trying to use the method
drawer.updateIcon(id, image in bitmap)
.But the image don't update. I checked the image and is correct.
I tried update using the header object, but not work too.
There is any library that is necessary for this to work?
I can't find a solution.
Thanks again.
The text was updated successfully, but these errors were encountered: