ScrollView and loading layouts

fdx12345

Active Member
Licensed User
Longtime User
In all of the examples, a layout view is loaded first. If I wish to create a ScrollView with textboxes and buttons, do I need to first created the compontents in the designer, save it as a layout file, then call that layout file with the open layout command?

I know I can create a scrollview in code but the first line of code in all of the scrollview examples involves loading a layout file which puts me back to the above question. If the layout file does not exist, will it create one?

Bill
 
No you can fill a ScrollView in the code without loading a layout file.
Look at this example.
It depends on what you want to display in the ScrollView.
If you have a layout with different views which need more space than the screen a layout file with a panel and all views on it is necessary.
If you have a lot of same views adding those in the code in a loop is easier.

Best regards.
 
Upvote 0
Add MenuItem results not showing up in emulator

The example is great except the command:

Activity.AddMenuItem("Display checked", "mnuChecked")
does not produce anything visual stating "Display Checked" on the emulator. Is there something else which has to be done?

Bill
 
Upvote 0
Menu Button - Now I understand

Now I understand!

I was expecting some kind of visual button on the screen, not a physical button on a phone.

Thank you for the help.

Bill
 
Upvote 0
Back
Top