I use fully anchored layouts which I load in a custom listview but anchoring does not work.
I have a layout with a back panel which anchors to the activity. On the panel are views which anchor to the panel. When I load this in a custom listview all views are gone out of sight. When I disable anchoring on the back panel and do .width=100%x it works but them my anchoring of views is lost.
Hereby the sample. Probably the issue is the newPanel declaration? I'm creating a new panel and that one is added to the listview with a layout called frmTest.
One additional question. I have this panel behind the button which is set to left 5 and right edge distance 5. However, on my phones right edge distance 5 is smaller compared to left 5. Is that correct? Basically the panel does not center on screen.