LAMW anchors lazarus / 43-Android ---------------------------------------------------------------------- xinyiman · 2019-08-03 12:06 Hi guys, I haven't used LAMW and android programming for a few years. I know it will be a trivial question, but I don't remember how to handle the objects anchors ---------------------------------------------------------------------- jmpessoa · 2019-08-03 16:46 from: https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW_Ge tting_Started.txt Quote[FAQ 2]: [Thanks to Ahmad Bohloolbandi (a.k.a. @developing) ] #Question: How do we can design a layout that shown same in real device? [Answer]: You should use the component properties:       "Anchor",       "PosRelativeToParent",       "PosRelativeToAnchor",       "LayoutParamHeight",       "LayoutParamWhidth"           Example: 1-Put a "jTextView" component on your AndroidModule form:    Set "PosRelativeToParent"       "rpCenterHorizontal" [True]       "rpTop" [True] 2-Put a "jButton" component on AndroidModule form:    Set "Anchor" to "jTextView" (Because you should set position relative with "jTextView")    set "PosRelativeToAnchor"       "raBelow" [True] 3-Put a "jEditText" component on form:    Set "Anchor" to "jButton".    Set "PosRelativeToAnchor"       "raBelow" [True] NOTE:    Anchor setting is most important section of this design,    because your component position depends on this property.    And for change width and/or height of each components you should    change/configure "LayoutParamWhidth" and/or "LayoutParamHeight". ---------------------------------------------------------------------- xinyiman · 2019-08-04 21:50 Thank you very much