On 12 Ago, 23:58, tkdave <
tkd...@gmail.com> wrote:
> Are you having trouble with loading the image or accessing the data.
> The data is passed to the grid item in the gridItemData property.
> Inside the drawGridItem method, you could put something like
> myImage.load( gridItemData.img )
>
> Then be sure to unload in the clearGridItem method.
>
> The key thing to remember is that item renders get recycled and
> reused. gridItemData property is set to a useful value when it's
> used, and it's set to null when it's not. If you implement your
> rendering in the draw method directly, be sure to check for null
> values of gridItemData and unload things as needed.
>
> Look around the code that's in the examples folder, too. This one is
> a useful demonstration of using GridLayout to do scrolling. This is
> the demo I created before I made the Grid component. (Try to ignore
> the missing images and security warnings. I know it needs an update.)