There are too many mistakes for me to list them all but I will try:
1. You are using the old CustomListView module instead of xCustomListView library.
2. You are not using anchors / designer script correctly.
3. You don't need to have two layout files. The whole idea of variants is that you can use a single layout with several variants.
4. With that said, you can also use a single variant with some designer script.
5. AutoScaleAll is never the solution for anything. It just slightly increases or decreases the views based on the difference between the variant and the real size.
The correct solution is to use anchors and designer script.
If AutoScaleAll doesn't work as you like then delete it.
6. You shouldn't have two activities based on the two layouts.
7. The sooner you switch to B4XPages the sooner things will become simpler.
Erel,
Thanks for your time... your comments were helpful.
1- Update to xCustomListView
2- I hope now to be using the anchors / designer in the correct way, use a layout at 320 x 480 and all the fields anchored upwards, except the fields of the last line, anchored to the bottom.
3- As it is a small test project, I had a layout for each activity (just to show the problem)
4- It is understood
5- Thanks, I got the idea and only modified the vertical position and the Height of the fields.
6- This was just to show the problem
7- I don't understand the relationship between B4XPages and the 'AutoScale' of many fields in a layout
Now the problem I have is that I lose the "Border" of the CustomView
I attach the project already modified.
Any help is welcome
Regards,
Edgar