Lines and Shapes inside a ListLayout
I have a layout that uses multiple nested custom containers.
View -> MenuCustomContainer -> ListLayout
The list layout is populated with:
MenuItemCustomContainer -> (3 x EditableCustomContainer + Lines and Shapes)
Part of my visual layout includes a few Line objects and Shape objects to create formatting, menu item separation, and indicators.
No matter how I do it, if there is a visible Line or Shape in either MenuItemCustomContainer or EditableCustomContainer inside that ListLayout my application crashes when touchgfx attempts to draw the screen.
Things I've tried so far:
- I've stepped through all my code. It all runs fine. Until it comes time to actually draw. Stack trace
- I moved the Lines and Shapes down into EditableCustomContainer. Same behavior.
- I've removed all my code completely and manually drawn the Line/Shape elements and set them to Visible from touchgfx gui itself with no later modifications in code. Exactly the same behavior.
- If I draw Line or Shape in View, or in MenuCustomContainer. No issues. Everything works fine.
- This is a weird one. If I draw Line or Shape inside MenuItemCustomContainer then directly include it in MenuCustomContainer (but not inside ListLayout:(
View -> MenuCustomContainer -> MenuItemCustomContainer -> Line/Shape
This works fine. AND, all the MenuItemCustomContainer still inside the ListLayout now work properly! But only as long as I have that extra MenuItemCustomContainer.
I feel like I'm missing something like an invalidate linked to the ListLayout or something. But I haven't been able to pin it down yet.
Any ideas would be appreciated.
