Erel's Template1 -what's wrong with this code?

Beja

Expert
Licensed User
Longtime User
Hello friends!
Tried to use Erel's example of Template1.bal and it was supposed to be loaded.
B4X:
Sub Activity_Create(FirstTime As Boolean)
   'Do not forget to load the layout file created with the visual designer. For example:
   Activity.LoadLayout("template1.bal")
End Sub

But when I opened designer I didn't see the tamplate..not even it's name in the drop-down menu from "File" (I saved the project and run it again) anything missing?

thanks in advance
 

Theera

Expert
Licensed User
Longtime User
Tried to use Erel's example of Template1.bal and it was supposed to be ")

Are you sure that have Template1.bal in Files Tab?
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
No it's not there, because I didn't know how to get it there.
any help appreciated!
 
Upvote 0

enonod

Well-Known Member
Licensed User
Longtime User
Go to project folder and place the file in the folder 'Files'.
Go to the lower right IDE tab 'Files' and 'Add File', navigate and choose the file. It will appear in the list.
Do this for fonts or any other files you want included
 
Last edited:
Upvote 0

Beja

Expert
Licensed User
Longtime User
enonod,

The .bal file is unchecked automatically even after saving it.. when tried to load from files folder it said can't execute - out of memory, or somting like that.
 
Upvote 0

enonod

Well-Known Member
Licensed User
Longtime User
The box should only be ticked if you are 'selecting' it, i.e. so that you can remove files, so that is not the problem. Leave that as it is now, it is correct.
I think you will have to look elsewhere for a memory problem.
Have you tried a new project solely for this test to eliminate everything else?
 
Last edited:
Upvote 0

enonod

Well-Known Member
Licensed User
Longtime User
Here is a project with the template.
 

Attachments

  • templatetest.zip
    7.5 KB · Views: 212
Upvote 0
Top