Designer Script problem

MaFu

Well-Known Member
Licensed User
Longtime User
Hello

I'm testing the trial from Designer4Android. I created a little test program with 4 views (label, listview, edittext and button). I added a script to align the views:
'All variants script
lblInfo.Width = 100%x
lstInfo.Width = 100%x
edtInfo.Width = 100%x
btnInfo.Width = 100%x
btnInfo.Bottom = 100%y
edtInfo.Bottom = btnInfo.Top
lstInfo.SetTopAndBottom(lblInfo.Bottom, edtInfo.Top)

But after LoadLayout() the script seems not running, the views stays in place as designed.
Is this a limitation of the trial or is something wrong?

Manfred
 

MaFu

Well-Known Member
Licensed User
Longtime User
I tested the same layout file (test.bal) in the Basic4Android demo and it works as expected. But in a pure java program with Designer4android_trial_1_01.jar library the scripts does not work.
 

MaFu

Well-Known Member
Licensed User
Longtime User
Have you originally created the layout file with Basic4android? If yes then it will not work as Basic4android format is more advanced.
Hi Erel

No, i created from scratch with Designer4Android. And in my little test program (made with Eclipse) the layout is loading and shows the views (on emulator and real device). Only the layout scripts doesn't work.
 

MaFu

Well-Known Member
Licensed User
Longtime User

MaFu

Well-Known Member
Licensed User
Longtime User
Hi Erel

As i say: my fault.
I created the layout in another directory and doesn't see the new subdir. So i copied only the bal file to the project.

Thank you for helping.
 
Top