Android Question save table to bitmap

leitor79

Active Member
Licensed User
Longtime User
Hi,

I'm using this table, and I need to save all the content (including the one is offscreen) to a bitmap file. I've tried several things, last one this one, but the best I cant get is to save the "inscreen" part.

I think that's because the table is not all loaded in memory but the items loads dinamically... is that right?

Thank you very much!
 

leitor79

Active Member
Licensed User
Longtime User
Hi Klaus, thank you for your answer!

Is there an easy way to change that behavior? I'm loading a table with 60 rows max. I've tried to set...

B4X:
    minVisibleRow = 0
    maxVisibleRow = Data.Size

...in the ScrollChanged event, but it only loads 14 rows and that shows all blanks at first....

Regards!
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
In the SV_ScrollChanged routine try to change these two lines
B4X:
currentMin = Max(0, PosY / cRowHeight - 30)
currentMax = Min(Data.Size - 1, (PosY + SV.Height) / cRowHeight + 30)
to
B4X:
currentMin = 0
currentMax = Data.Size - 1

Don't change these two lines in innerClearAll !
B4X:
minVisibleRow = 0
maxVisibleRow = Data.Size
Leave them as they are:
B4X:
minVisibleRow = -1
maxVisibleRow = 0
 
Upvote 0
Top