B4A Library [Lib] CoverFlow v2.0

ronovar

Active Member
Licensed User
Longtime User
No hurry, i have just ask...i know that there is a loot of javascript cooding...so i will wait.

Do You have any good tutorial how can i write library for B4A using java code? I diassembled some apk and would like to copy code and make library for one component from this apk.I need tutorial to learn how to write library.

Thanks.
 

Mrjoey

Active Member
Licensed User
Longtime User
hello lonelystar , i noticed that when u scroll , the image is loaded , do u mind to share some codes about doing that? i have lots of images i want to add to list , so instead of adding them directly using a loop wish becomes slow , it would fill the list and when the list is finished it will fill then the images hope u did understand my point , any suggestions are appreciated , tnx man keep forward
 

Mrjoey

Active Member
Licensed User
Longtime User
Hi MrJoey, I think I understand, but can U make an example in B4Android?.
B4X:
Sub ScrollView1_ScrollChanged(Position As Int)
'If Ind < (mapa.Size/9 )-1 Then
    If Position + ScrollView1.Height >= ScrollView1.Panel.Height Then
    If DateTime.Now > lastAddItemsTime + 1 Then
      lastAddItemsTime = DateTime.Now
    CallSub(Me,"ReadAudios")
    End If
  End If
'End If 
End Sub
this code loads additional items when the scrollview reaches a specific number of items so lets say there is 20 panels added to this scrollview and instead of making a loop to fill that 20 panels once , it add let say 10 and then when the user scrolls down it will add the other 10 , that way is very efficient and public , i think u are using this method in kind of ways , i would like u to share an idea of urs to display images instead , tnx
 

ronovar

Active Member
Licensed User
Longtime User
Hi, i im playing with this excellent library and would like to ask if is possible to get images direct from httputils2 using Job.GetBitmap.

I would like to fill coverflow with images from my url link of my server, not to save it to device.

So i have sucessfully used this:

B4X:
CoverFlow1.SetBackgroundImage(Job.GetBitmap)

but this sets last image retrieved from server, witch is what i expected.

So i need the code if is possible to add image to CoverFlow instead of saving it to device.

For example:

CoverFlow1.AddImageFromUrl(Job.GetBitmap)
 

Mrjoey

Active Member
Licensed User
Longtime User
hey , 1 suggestion for next update , im using B4Agallery , and there is a function called setarraylist , can u include it in coverflow? thank u
 

Mrjoey

Active Member
Licensed User
Longtime User
aha appreciate ur hardwork , take ur time man , so this update will coverflow includes setarraylist or the next update u mean?
 

ronovar

Active Member
Licensed User
Longtime User
Hi, sorry to bother you...can you post progress on VerticaFlow.

Many Thanks.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…