M Mike1970 Well-Known Member Licensed User Longtime User Dec 13, 2019 #1 Hi everyone, i'm trying to adapt an example of a chat layout (android reference by @Douglas Farias) I want to change the property (width, height, position) of a panel in a customlistview (loaded with loadlayout). If I go step by step with the Debugger it seems to work, but as soon as it go on the "End Sub" of the "VisibleHeightChanged" it reset all things, and all the views return as before all the settings. I leave a project to test.... This thing it's driving me crazy How it should looks like (screenshot taken while debugging line by line): How it looks if i press "play": Attachments clvex.zip clvex.zip 64.2 KB · Views: 655 Last edited: Dec 14, 2019
Hi everyone, i'm trying to adapt an example of a chat layout (android reference by @Douglas Farias) I want to change the property (width, height, position) of a panel in a customlistview (loaded with loadlayout). If I go step by step with the Debugger it seems to work, but as soon as it go on the "End Sub" of the "VisibleHeightChanged" it reset all things, and all the views return as before all the settings. I leave a project to test.... This thing it's driving me crazy How it should looks like (screenshot taken while debugging line by line): How it looks if i press "play":
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2019 #2 Make sure that "handle resize event" option is not checked in the layout file if you want to change the layout programmatically. Another option is to change the layout in the resize event. Upvote 0
Make sure that "handle resize event" option is not checked in the layout file if you want to change the layout programmatically. Another option is to change the layout in the resize event.
M Mike1970 Well-Known Member Licensed User Longtime User Dec 15, 2019 #3 Erel said: Make sure that "handle resize event" option is not checked in the layout file if you want to change the layout programmatically. Another option is to change the layout in the resize event. Click to expand... ok, later i will check if there is that option. Upvote 0
Erel said: Make sure that "handle resize event" option is not checked in the layout file if you want to change the layout programmatically. Another option is to change the layout in the resize event. Click to expand... ok, later i will check if there is that option.
M Mike1970 Well-Known Member Licensed User Longtime User Dec 15, 2019 #4 Erel said: Make sure that "handle resize event" option is not checked in the layout file if you want to change the layout programmatically. Click to expand... THANKS. It worked! Upvote 0
Erel said: Make sure that "handle resize event" option is not checked in the layout file if you want to change the layout programmatically. Click to expand... THANKS. It worked!