Firemonkey - tips for positioning components in mobile applications

As far as I understand, in Delphi for Android I set the width and height of the component in pixels. Therefore, it will be a noticeable difference on different screens. I would like the dp units parameter (or smth similar) to be set instead .

ActionBar: TToolBar;

ActionBar := TToolBar.Create(Form1);
ActionBar.Align := TAlignLayout.alTop;
ActionBar.Height := 30.0;
ActionBar.Parent := Form1;

As you can see, I manually adjusted the sizes. The reason I refused to use layouts is because I mix FMX with native Android components.
I want my Action Bar to look beautiful on different screens :) What is the right way to achieve this?

+3
source share
2 answers

. , . , 10 . 10 , , . , !

:

+1

Tlayout . , , . , Google Delphi Responsive. .

-1

All Articles