Hi Louis,
Just installed DropBox. Nice tool and I was just looking for something like it.
I will send you a PM and share information here in case I think it could be usefull to others or that others have a better solution. Ok?
- I added "Activity.LoadLayout("MainActivity")
It's needed to show the layout and I often forget it myself
- In general I alway set the first view properties to Left: 5 and Top: 5 in the Designer and in the code I set the width and height to a size, inmediately followed by "dip".
- When you add a View in the Disigner you don't have to (should not) initialize it in the code.
- In the Designer I also set the Vertical Alignment to "Top" and I set the Font size to 15. Personally I always set it to 16 but size 15 is very readable as well. (Oeps, now I question myself if I express myself correctly)
- Wrap is set in the Designer, so no need to add it in coding.
- After some searching I finally found how to get the rotating to work (I'm slow, I know).
In the Designer I added a new Layout (New variant, which already was defined: opposite sizes of the Portrait mode) and then I found the code in the Tic-Tac-Toe example.
So simple once you know it (added in the Activity_Create block):
If GetDeviceLayoutValues.Height < GetDeviceLayoutValues.Width Then
EditText1.Width = 465dip
EditText1.Height = 265dip
Else
EditText1.Width = 310dip
EditText1.Height = 425dip
End If
All 4 directions are covered now.
The style of the layout, colours and possible pictures depend on the kind of application one is creating. So this one still is black and white.
Greets,
Helen.