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?
source
share