Recent

Author Topic: Design Form Android Module  (Read 2233 times)

ramdhani

  • New member
  • *
  • Posts: 7
Design Form Android Module
« on: January 02, 2019, 01:54:44 pm »
Why is the design of the Android Module when displayed on the emulator not the same?

Laztoapk: v.0.9.40
NDK: 24 (Nougat 7.0)
SDK: 24 (Nougat 7.0)

Handoko

  • Hero Member
  • *****
  • Posts: 5132
  • My goal: build my own game engine using Lazarus
Re: Design Form Android Module
« Reply #1 on: January 02, 2019, 05:29:28 pm »
Android works differently compare to Linux or Windows. You still can achieve the layout as what you want if you configure these properties properly:
  • LayoutParamHeight
  • LayoutParamWidth
  • PosRelativeToAnchor
  • PosRelativeToParent

Try to put only 2 items and set the value for the properties above to examine how it works.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: Design Form Android Module
« Reply #2 on: January 02, 2019, 06:52:43 pm »

Yes!

Only a minor hint:

 "Anchor" + "PosRelativeToAnchor"     <<------ act as a  pair/complement
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

ramdhani

  • New member
  • *
  • Posts: 7
Re: Design Form Android Module
« Reply #3 on: January 03, 2019, 12:49:25 pm »
Android works differently compare to Linux or Windows. You still can achieve the layout as what you want if you configure these properties properly:
  • LayoutParamHeight
  • LayoutParamWidth
  • PosRelativeToAnchor
  • PosRelativeToParent

Try to put only 2 items and set the value for the properties above to examine how it works.

solved  :)

 

TinyPortal © 2005-2018