秋·风

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  278 随笔 :: 0 文章 :: 308 评论 :: 20万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

lazarus LAMW开发安卓APP时,GUI如何布局?

  • 可视组件请配置这些属性:
  •   Anchor
  •   PosRelativeToParent
  •   PosRelativeToAnchor
  •   LayoutParamHeight
  •   LayoutParamWhidth
    • 1 - 在LAMW Form上放置一个jTextView组件并设置属性:
       PosRelativeToParent
           rpCenterHorizontal = [True]
           rpTop = [True]
        Text = GUI Design WYSIWYG   
           
        (Because only Position Relative to Parent(form) is need to localize jTextView1)
    • 2 - 在LAMW Form上放置一个jEditText组件并设置属性:
        Anchor = jTextView1
        LayoutParamWidth = lpTwoThirdOfParent
        PosRelativeToAnchor
           raBelow = [True]
        PosRelativeToParent
           rpCenterHorizontal = [True]
        Text = Ok
      
        (Because we want it to be bellow the jTextView1)
    • 3 - 将jButton组件放在 LAMW 窗体上并设置属性:
        Anchor = jEditText1
        LayoutParamWidth = lpTwoThirdOfParent 
        PosRelativeToAnchor
           raBelow = [True]
        PosRelativeToParent
           rpCenterHorizontal = [True]
        Text = Sample    
      
        (Because we want it to be bellow the jEditText1)
    • 4 - 提示:

                         要更改可视组件的宽度/高度,应配置LayoutParamWhidth和LayoutParamHeight!

 

posted on   秋·风  阅读(1093)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异
· 三行代码完成国际化适配,妙~啊~
点击右上角即可分享
微信分享提示