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

Use relative layout background instead of image view #2358

Open
Preetthee opened this issue May 4, 2023 · 1 comment
Open

Use relative layout background instead of image view #2358

Preetthee opened this issue May 4, 2023 · 1 comment

Comments

@Preetthee
Copy link

Why cant I use this to set a relative layout background?

@chiragcode11
Copy link

Picasso is primarily designed for loading and displaying images into ImageView widgets, and setting the background of a layout involves a slightly different approach.
If you want to set the background of a RelativeLayout with an image using Picasso, you can create a Target object to handle the bitmap and then set it as the background.

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