Android Question Having Problem with AddView and Anchors

Paul Leischow

Member
Licensed User
Longtime 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.
panelgood.jpg



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



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

Attachments

  • panel.zip
    9.6 KB · Views: 164
Top