B4i Library Picasso

Discussion in 'iOS Libraries' started by Pooya1, Aug 20, 2018.

  1. Pooya1

    Pooya1 Active Member Licensed User

    Hi
    I tried converted picasso library for B4i with my programming (not picasso src)
    In this library i use thread for download and chaining method
    For download i use HttpUtil
    Please develop it and share

    Example:
    Code:
    Dim de As DefaultTarget
    de.Initialize
    de.EventName = 
    "tag"
    de.Tag = ImageView1

    Dim pi As Picasso
    pi.Initialize(Me)
    pi.ErrorDrawable(
    LoadBitmap(File.DirAssets,"nopicture.png")).CenterCrop.PlaceholderDrawable(LoadBitmap(File.DirAssets,"loading.gif")).Resize(ImageView1.Width,ImageView1.Height).Rotate(30)
    pi.LoadUrl(
    "https://b4x-4c17.kxcdn.com/images/Logo_on-dark.png")
    pi.IntoTarget(de)

    Sub tag_Success(Bitmap1 As Bitmap, Tag As Object)
       
    dim img as imageview
       img = tag
       img.Bitmap = Bitmap1
    End Sub
     

    Attached Files:

    Almora likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice