icons array

peacemaker

Expert
Licensed User
Longtime User
Hi, All

How to arrange icons array, say 50....200 pcs ?
It's for a cash for fast loading to activity when needs.
 

peacemaker

Expert
Licensed User
Longtime User
Hmm, but how ? I mean where Bitmaps of Icons will be stored?
 
Upvote 0

goron

Member
Licensed User
Longtime User
Not so complicated...

Take a look at:
Basic4Android User's Guide
9.2 Layers with Panels / ImageViews / Images


Something like:

File1=icon00.png
File2=icon01.png
File3=icon02.png
File4=icon03.png
File5=icon04.png


Dim AllIcons(5) As Bitmap ' bitmaps array

For i = 0 To 4
AllIcons(i).Initialize(File.DirAssets, "icon0" & i & ".png")
Next

HTH,
Gideon Oron
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
I found that most long operation is
Panel1.LoadLayout
in a loop, during creation the interface.

So, creating views by code is fastest way - note all who makes grids of panels with layouts.
 
Last edited:
Upvote 0
Top