Android Question CustomListView - Transaction too large crash when going to pause.

Erel

Administrator
Staff member
Licensed User
The error happened because the "activity" color is a gradient color.
It shouldn't have crashed. You've hit a bug in XUI library that caused this crash. It is fixed for the next update.

You should set the background color to a solid color (or the default color). If you like to have an item with a gradient color then add a panel and set its background (with the designer).
 

alon

Active Member
Licensed User
The error happened because the "activity" color is a gradient color.
It shouldn't have crashed. You've hit a bug in XUI library that caused this crash. It is fixed for the next update.

You should set the background color to a solid color (or the default color). If you like to have an item with a gradient color then add a panel and set its background (with the designer).
Greate Thanks a lot.

It will be in the next update of b4a?
 

alon

Active Member
Licensed User
Note that you should still use a solid color. B4XView.Color will just not crash and return a transparent color instead.
Thanks.

sorry but now i am having a different problem with the listview.
the following code is not working:

clv.AsView.Width = 100%x
clv.AsView.Height = 80%y


I have notice that the clv.widh is being smaller only after the createitemlist Sub
if I will skip the createitemlist Sub the the clv.width is 100%x

Am i missing a configuration?

Thanks
 
Last edited:

alon

Active Member
Licensed User
Ok I think I found the problem.

now when i am adding this code:
clv.sv.Height = 80%y
the scroll is showing all over the listview

the only problem that I have now is that the item panel is not in the same width of list view.
I was trying to write this code but still the same.

clv.sv.Left = 0
clvDoh.sv.Width = 100%x
 

Attachments

Top