Check Mobile App
Read now
Start a Project

How to get image width and height with picasso library

Save

In this blog,
I have shown you the how to get the image width and height in Picasso.

Get the width and height

You may get the Bitmap dimensions only after downloading the image. you must use synchronous method call like this:

Synchronous method call like this:

This block of code will give the exception, so don’t forget to put this code in try/catch block.

Or

you can use the Target(this is the better way to get the width and height)

 

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

The support is fast and do everything in their power to make it perfect. If you need customization it's also done right away. I had massive research to select Mobikul and now I'm sure it was the right one.

Igor Souza

Igor Souza

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home