images and other project content confusion

sorex

Expert
Licensed User
Longtime User
Hello,

I have some questions and maybe hints for improvements.

1.

Each project has this Files folder where you add/import data to.

When you place the source file in that folder and import it B4A nags that it can't overwrite it. So I have to place it at the parent first and then import it.
This causes a mess unless I delete it again after the import.

Why not add a right-click > refresh option that adds all the files that are in the %Project%\Files folder at once to the project?

Less hassle and duplicate files then.


2.

Images imported in the %Project%\Files folder needs to be added a second time to the project when you want to link it in an imageView.

What's the use of this seperate file list? Why not list the %Project%\Files folder there so that we just need to select the file instead of adding it to some other list?

I just had another look at that form and I see that Layout Variants part, does it mean you can add several images that are linked to a specific variant?

Even then... why not just list only the supported images (gif/jpg/png?) from %Project%\Files there in the Image Files list?

Ok, the "image file" select/dropdown list would be a lot bigger but then it's just select and go.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
When you place the source file in that folder and import it B4A nags that it can't overwrite it.
Why can't the file be overwritten? As Android file system is case sensitive the IDE tries to rename the file name to be lower case. Later when you access a file from File.DirAssets the string will also be lower cased.

2. The layout file is associated with its images. It can be changed in the future.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
You're right Erel, now it works adding a file that's already in the Files folder.

It used to give errors in older versions (or I did something else that didn't work)

But imagine adding a few dozen images like seperate sprite frames instead of 1 spritesheet,
you lose a lot of time to add it all one by one.

So a right-click refresh like option might not be such a bad thing ;)
 
Last edited:
Upvote 0
Top