Android Question Cards list contents displayed different from Visual Designer layout

Richard Goh

Active Member
Licensed User
Hi! I was trying to use card list example from
https://www.b4x.com/android/forum/threads/cards-list-with-customlistview.87720/. It's work fined until I change the card display format (as attached designer screen). When run the apps, the result objects position shown (as attached screen result) are displayed different from Visual Designer layout. There isn't any code to re-position or relocation of the display objects. Why the apps arranged the display at that format? Is the card view arrange the object by itself? Is B4XView rearrange the display? I had try to position it to others position and it's doesn't change as well. The images supposedly display horizontally at the bottom of the card but it's displayed vertically at the right edge of the card. I had lost many hours on troubleshooting on this problem. Any advice or suggestion is highly appreciated.
Thanks in advance.
 

Attachments

DonManfred

Expert
Licensed User
Upload a small project which shows the issue.

Looks for me like an bad designed layoutfile (anchors not set correctly).

Additionally i´m pretty sure cardview_designer layoutfile does not match the layoutfile screen_result. I don´t see the objects moving to the right and are vertically assigned
 

Richard Goh

Active Member
Licensed User
Hi,
I had resolved the screen problem by copy sample visual designer view card and modify the design from there. It's worked. But I don't know why my previous design doesn't take effect. Anyway thanks for the response and sorry for the trouble.
Thank you.
 
Top