repositioning views

rhcarpenter

Member
Licensed User
Longtime User
I have developed my first android/B4a app. I used the designer to build my screen for a 320x480 layout. Runs great on all phones, 7 inch tablets, and 10 inch tablets. But on the large platforms, it does not look good.

When running on large screens, I need to reposition my views. How do I do that. For instance, after loading the Layout I tried:

ImageView1.Left := Round((Activity.Width - ImageView1.Width)/2)

but I get a compiler error which says "Illegal first word in line."

I'm new to Basic and Android development. I'm sorry if this seems simple but your help will be appreciated.

Randall H. Carpenter
 

rhcarpenter

Member
Licensed User
Longtime User
basic and pascal

I am a pascal programmer. I caught my assignment statement error shortly after post my note. Thanks.

Most all of my programming has been pascal using Turbo Pascal and later, Delphi. I currently use Delphi 2010. It's a great development tool for the Windows desktop, networking, and some internet development. But I'm looking for ways to develop for the new Android platform. This is the easiest on I've found so far.

Thanks for everyone's input. It has been very helpful.
 
Upvote 0
Top