B4A Library New [ ICOSGridView2 ] which will go to replace the old [ ICOSGridView ]

Hi everyone, I'm back and I'm pleased to introduce my new library ICOSGridView2 completely rewritten, which will go to replace the old ICOSGridView library.

In this new version now you can set the size in both horizontal and vertical, the space between two images, animate the single image, erase one image or several images, move a single image from one location to another location, the swap between two images, and much more.

I've included an example, you just have to try it out.

Before using the demo looks below and change "Any Folder Here" with your "Folder" and "Any Image Here" whit your "Image"

Sub m1_Click
GridView.LoadImages(File.DirRootExternal&"/any folder here")
Refresh
End Sub

Sub m2_Click
GridView.AddSingleImageAt(1,File.DirRootExternal&"/any image here")
Refresh
End Sub

Sub m3_Click
GridView.AddMultipleImagesAt(2,File.DirRootExternal"&"/any folder here)
Refresh
End Sub



best regards


G.Salvi
 

Attachments

  • ICOSGridView2.zip
    37.2 KB · Views: 446
  • pic01.jpg
    pic01.jpg
    42.6 KB · Views: 505
  • pic02.jpg
    pic02.jpg
    85.9 KB · Views: 589
  • pic03.jpg
    pic03.jpg
    74.4 KB · Views: 483
  • pic04.jpg
    pic04.jpg
    79.1 KB · Views: 430
  • pic05.jpg
    pic05.jpg
    74.4 KB · Views: 454
  • pic06.jpg
    pic06.jpg
    92.1 KB · Views: 436
  • pic07.jpg
    pic07.jpg
    75.4 KB · Views: 453

holdemadvantage

Active Member
Licensed User
Longtime User
Hi , i receive the same message "Gallery is empty, please fill it" The file exist in File.DirRootExternal&"/BabyMatch/images" folder (i check it with



If File.Exists(File.DirRootExternal&"/BabyMatch/images","bird.png") Then Msgbox("exist","")

i choose m2 in your example

Sub m2_Click

GridView.AddSingleImageAt(1,File.DirRootExternal &"/BabyMatch/images/bird.png")
Refresh
End Sub

any advice? I am sorry i cannot use because it is exactly what i need .Thanks a lot
 
Last edited:

Mahares

Expert
Licensed User
Longtime User
From what I noticed, you have to load first:
B4X:
Sub m2_Click
   GridView.LoadImages(File.DirRootExternal & "/any folder here")  'add a line similar
  GridView.AddSingleImageAt(1,File.DirRootExternal &"/BabyMatch/images/bird.png")
  Refresh
 End Sub
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Thanks mr Salvi, i am also trying Swap2View but with some trouble ( i use it in an array of images) latest version i have is 1.4 is there anything more recent?
Grazie
Hi holdemadvantage,

thx for the idea i´ll implement the image array in it.

sei italiano? di dove?
 

holdemadvantage

Active Member
Licensed User
Longtime User
Ciao , si sono di modena. Complimenti
per le librerie, sono molto interessanti. Sono due giorni che sbatto la testa per swappare due immagini ciascuna delle quali contenuta in un array di immagini. Sembra che non sia possibile gestire piu' animazioni sulla stessa activity con la stessa variabile, si ottengono effetti random senza logica peeche' i processi si sovrappongono. pensi sia possibile gestire le tante animazioni con un array di animazioni?

Two days that i am trying to find a solution to use Icos3dflip lib with an array of images, is it possible in tour opinion to use it with different animation in one activity at the same time? Thanks in advance

Inviato dal mio GT-I9300 con Tapatalk 2
 
Last edited:

lonleystar

Well-Known Member
Licensed User
Longtime User
Ciao , si sono di modena. Complimenti
per le librerie, sono molto interessanti. Sono due giorni che sbatto la testa per swappare due immagini ciascuna delle quali contenuta in un array di immagini. Sembra che non sia possibile gestire piu' animazioni sulla stessa activity con la stessa variabile, si ottengono effetti random senza logica peeche' i processi si sovrappongono. pensi sia possibile gestire le tante animazioni con un array di animazioni?

Two days that i am trying to find a solution to use Icos3dflip lib with an array of images, is it possible in tour opinion to use it with different animation in one activity at the same time? Thanks in advance

Inviato dal mio GT-I9300 con Tapatalk 2
Ciao holdemadvantage,

Io sono di taranto ma adesso vivo in Germania.

Modena e bellissima sono stato 7 mesi.

--


Comunque Dammi un po di tempo e cerco di risolvere.
Anyway, give me some time and I try to fix it.
 

ronovar

Active Member
Licensed User
Longtime User
Hi, I im trying to put picture from my url link but i don't know how to do it.. Can You Please post example code?

I tried putting picture from my files folder of apk but i get error...here is my code:

B4X:
Sub Globals
    Dim GridView As ICOSGridView2

End Sub

Sub Activity_Create(FirstTime As Boolean)
GridView.Initialize("GridView")
Activity.AddView(GridView,0,0,100%x,100%y)
Menu
GridView.SetImagesWidth=100
GridView.SetImagesHeight=100
GridView.NumColumns=3
GridView.HSpacing=10
GridView.VSpacing=10
GridView.ColumnWidth=110
GridView.StretchMode=2
GridView.AddSingleImageAt(1,File.DirAssets&"/cover.jpg")
Refresh
End Sub

Sub Refresh
Activity.Title="Number of Images in the GridView = "&GridView.ImageCount
End Sub

So after running this code i get error.

So If You can post example code how to add images via url (http://webserver.com/images/DSC0013.jpg) it will be great.

Thanks.
 

Douglas Farias

Expert
Licensed User
Longtime User
ty but go have border option ? xD can ius simples you only give a chance to user add in dip and the color

border = 0 'defaut
border_color = colors.white 'defaut *-*

if you have a time make this pls *-*
 
Top