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

More dynamic icons #138

Open
Yuvix25 opened this issue Nov 8, 2022 · 0 comments
Open

More dynamic icons #138

Yuvix25 opened this issue Nov 8, 2022 · 0 comments

Comments

@Yuvix25
Copy link

Yuvix25 commented Nov 8, 2022

Is your feature request related to a problem?

I am loading some images from a remote server (using Glide), and I want to use them as icons in the spinner. The problem is that it takes time to load the images from the server, so right now I need to load all of the images, and only then add the items to the spinner. It would be much better if I could populate the spinner with text only, and then dynamically add the icons.

Describe the solution you'd like:

I'd like to have an option to dynamically set the icons, and as Glide works with ImagesView, a solution I am using for something else which I found quite friendly is to set the icons as ImageViews, and the have the library call ImageView.getDrawable on demand whenever an icon is done loading.

Describe alternatives you've considered:

I've considered just building my own spinner with images, as I don't really need a complex spinner, just some basic text and icons.

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

1 participant