Hello,
With the start of the app I need to add around 300 label to a scrollview which all have to load a custom font. I use:
this makes a lag around 5 seconds on startup. What is the best way to load font for multiple files on startup. ( I need them on startup as I load the values of them from the server on startup )
Thanks
With the start of the app I need to add around 300 label to a scrollview which all have to load a custom font. I use:
B4X:
for i=0 to 300
price(i).Font=fx.LoadFont(File.DirAssets,"twnb.ttf",14)
next
this makes a lag around 5 seconds on startup. What is the best way to load font for multiple files on startup. ( I need them on startup as I load the values of them from the server on startup )
Thanks