Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi XE5 center android layout

I am developing an android app with Delphi XE5 and I have the Google Nexus 4 layout. For example, the screen dimensions of a Samsung Galaxy S4 are different from the Nexus's one.

I have a panel that contains some stuff like buttons, edits and labels. I'd like to center-align this panel, so everytime it is in the middle of the screen.

How could I do this?

like image 439
Alberto Rossi Avatar asked Dec 25 '22 20:12

Alberto Rossi


1 Answers

Drop a TPanel on the form and add your buttons to it. Then set the Align property of the TPanel to alCenter.

like image 57
norgepaul Avatar answered Dec 31 '22 14:12

norgepaul