Android Question App can't find layout file

lledden

Member
Licensed User
Longtime User
I have a simple app that is working in the Andy emulator. I just added a custom list view with layout made in the designer. The custom list layout file (lstlayout.bal) appears in the files tab in the IDE along with the main layout file (Remote.bal). The app starts and loads the main activity layout file which displays properly.

When the Activity attempts to create the custom list view
B4X:
    Dim p As Panel
    p.Initialize("")
    p.SetLayout(0, 0, Width, Height)
    p.LoadLayout("lstlayout")

I get the error
java.io.FileNotFoundException: /data/user/0/b4a.example/files/virtual_assets/lstlayout.bal (No such file or directory)

Is there something special that needs to be done to include layout files with the apk?
 
Top