Android Question Picasso load a JPG in a ImageView....?

Licht2002

Member
Licensed User
Longtime User
Hello to all!!!

I can load a Bitmap with Picasso in a ImageView...

Picasso1.LoadUrl("http://www.dhm.de/webcams/pics/cam1_large.jpg").Fit.IntoImageView(ImageView1)

but what do i have to do, when i want to load a file from the Device:

Picasso.LoadFile(File.DirAssets,"pic.jpg").IntoImageView(ImageView1)

Do not work.....
"Parsing code. 0.08
Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Occurred on line: 483
picasso1.LoadFile(File.DirAssets,"pic.jpg").IntoImageView
Word: pic.jpg"

Thanks for your help

Tom
 

NJDude

Expert
Licensed User
Longtime User
You have to do something like this:
B4X:
Dim FilePath As String

FilePath = File.Combine(File.DirAssets, "pic.jpg")

Picasso1.LoadFile(FilePath).IntoImageView(ImageView1)
 
Last edited:
Upvote 0
Top