Android Question Having Problem with AddView and Anchors

Paul Leischow

Member
Licensed User
Can someone point out what I am doing wrong here or is this a bug?

If I add a layout using Activity.AddView and in the Layout Designer I set the Anchors of a Panel to Left/Top, the Panel displays as expected.



If I do the exact same thing but set the Anchors to use full screen, I get a blank screen... nothing is displayed.



If I load the same layout using Activity.LoadLayout("panel1") , it displays correctly.
 

Attachments

Top