We are developing an application that contain 80 layout for 600 X 1024 dimension.I would like to run the same application in 480 X 800 without changing in designer and code.How to fit (Autosize all view) for all device. see the attached example layout and advise how to solve this issue.awaiting for reply
There is no magic. You need to programmatically go over the views and change their size and position to meet your needs.
For example:
B4X:
For i = 0 To Activity.NumberOfViews - 1
If Activity.GetView(i) Is Button Then
Dim b As Button
b = Activity.GetView(i)
b.Width = b.Width * 0.75
b.Height = b.Height * 0.75
If b.Left > 50dip Then b.Left = 30dip
End If
Next