Skip to content
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

Getting initial image drawable #39

Closed
timplifier opened this issue Sep 6, 2022 · 2 comments
Closed

Getting initial image drawable #39

timplifier opened this issue Sep 6, 2022 · 2 comments

Comments

@timplifier
Copy link

I was trying to get the drawable of the initial image in order to download it to local storage, however, it is not possible now. I was using this piece of code
avatarView.drawable.toBitmap()
it throws null pointer exception, stating that drawable is null all the time.

@skydoves
Copy link
Member

Hi @Clar1fy, for now, we don't have support providing image drawable of the AvatarView.
Instead, check out this - https://stackoverflow.com/questions/3107527/android-save-view-to-jpg-or-png
Thanks!

@timplifier
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants