Android Question Remove all images from gridview

Douglas Farias

Expert
Licensed User
Longtime User
Hi i m using the B4aGridView to get a list of images of the web.
Ok.

this is working show the images on the app but i dont know how to remove from the screen.
i m want to show only 4 images on the screen like imagedownloader sample, when press a button show 4 diferent photos, press again clear the 4 current photos and add new 4 photos etc

i m trying to use this code to get all views and clear this, i think the code is correct but i have error all time *-*
here is the code
B4X:
If    GridView.Length > 0 Then
    For i=0 To  GridView.Length - 1
    GridView.RemoveAt = i
    Next
    End If

The error log

what can i make to clear the 4 images at the grid and add 4 diferent new photos?
http://www.b4x.com/android/forum/threads/library-b4agridview-v3-30.24965/
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…