B4A Library [Library] B4aGridView v3.80

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi, I'll check it.
 

Shahid Saeed

Active Member
Licensed User
Longtime User
Hi, I'll check it.
A Strange thing just hapening, I am using GridView on many different activities but on some activities I am getting the following error, even the code is same on all activities:

B4X:
java.lang.IndexOutOfBoundsException: Invalid index 4, size is 0
    at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
    at java.util.ArrayList.get(ArrayList.java:304)
    at anywheresoftware.b4a.objects.collections.List.Get(List.java:117)
    at com.prcamels.videos._gridview2_itemclick(videos.java:641)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:163)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
    at it.giuseppe.salvi.gridview.library.core.GridViewActivityWrapper$1.onItemClick(GridViewActivityWrapper.java:153)
    at it.giuseppe.salvi.gridview.library.core.widget.gridview.GridViewWrapper.onItemClick(GridViewWrapper.java:86)
    at android.widget.AdapterView.performItemClick(AdapterView.java:298)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1086)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:2855)
    at android.widget.AbsListView$1.run(AbsListView.java:3529)
    at android.os.Handler.handleCallback(Handler.java:615)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4745)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    at dalvik.system.NativeStart.main(Native Method)
 

lonleystar

Well-Known Member
Licensed User
Longtime User

Hi, Thanks to report this issue I'll check.
 

lonleystar

Well-Known Member
Licensed User
Longtime User


Hi, I think U should use ShowFromWeb Example:

fromWeb = Array As String("https://www.dropbox.com/sh/33xsnove...EqfBTWkpa/paco_db/Lipocromos sin factor/1.jpg","etc","etc")

PhotoPager.ShowFromWeb(fromWeb)
 

aviario

Active Member
Licensed User
Longtime User
Thanks for your attention, I have already tried that but it forces me to put every direction and otherwise shows me all, I was not the direction of the photo because the application automatically goes to dropbox and other applications is that shows that in this case would B4aGridView I think is a very good tool
 

Shahid Saeed

Active Member
Licensed User
Longtime User
Since you are loading Images through Web; providing the folder link won't load images in that folder, you will need to provide separate url for each image. The best workaround is to use the DropBox API and fetch folder contents as JSON or text and combine it with ShowFromWeb(URL) this way you can achieve what you need.

You can find DropBox API here: https://code.google.com/p/dropbox-php/wiki/Dropbox_API
 

Reids

Member
Licensed User
Longtime User
Hello can I request feature that add ribbon to corner of grind (top right) or (top left), for example placed item with NEW, POPULAR, HOT ribbon something like this?
 

Attachments

  • new-ribbon.png
    3 KB · Views: 209

tuhatinhvn

Active Member
Licensed User
Longtime User
why every body can use this libary when click item i must wait 10-20s to load ???

Use load image from web?
ANy body fix it? very bad
 

Douglas Farias

Expert
Licensed User
Longtime User
Bugs Reports
Your last lib version
-give out of memory
-dont show the grid
 
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
Another sugestion importante is remove all views
gridview.RemoveAll
 

Douglas Farias

Expert
Licensed User
Longtime User
how can i remove all images for now?

i m trying to use this
B4X:
    If    GridView.Length > 0 Then
    For i=0 To  GridView.Length - 1
    GridView.RemoveAt = i
    Next
    End If

but not sucess have 4 images at screen and i have this error log
java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2

the log of (GridView.Length) is 4
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi, in a few days comes a new update also B4APhotoPager new update as I promised be patience.
Thanks in advance.
 

Douglas Farias

Expert
Licensed User
Longtime User
@lonleystar
hi man, can you fix the click on image speed on version 3.2?
the version 3.3 dont work here, the 3.2 work perfect but the click is very slow *-*
Sub GridView_ItemClick(Position As Int, Tag As Object, Value As Object)
this is very slow you click and need wait 7 - 15 seconds *-*

can u update only this for now? i need this =( i m only waiting this *-*
 

lonleystar

Well-Known Member
Licensed User
Longtime User

Hi, I'm fixing it.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…