Hi
I am struggling with the iTableView a lot and kindly need some advice. I have defined my pages in code modules...
1. Where is the best location to initialize an iTableView? Inside pg.IsInitialized or outside? If outside, is that after navControl.ShowPage in your Show sub or just before?
2. What is the best location to load items to the iTableView, in your Show sub? pg_resize, pg_appear? or somewhere else?
3. On pg_resize event, is it compulsory / needed to .SetLayoutAnimated for iTableView? Can this event be left out when it comes to iTableViews or not?
Here is my troublesome source code, can someone please advise?
https://www.dropbox.com/s/2a0xyv9w2o1smtz/iBibleShow.zip?dl=0
This followed this approach here: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#post-312440
With my code, I have initialized my listviews inside pg.IsInitialized, when I call my show method for the page concerned, the first time the lists are loaded properly. After I click the back button and open the same page from the listview the items dont show on the iTableView anymore.
I am struggling with the iTableView a lot and kindly need some advice. I have defined my pages in code modules...
1. Where is the best location to initialize an iTableView? Inside pg.IsInitialized or outside? If outside, is that after navControl.ShowPage in your Show sub or just before?
2. What is the best location to load items to the iTableView, in your Show sub? pg_resize, pg_appear? or somewhere else?
3. On pg_resize event, is it compulsory / needed to .SetLayoutAnimated for iTableView? Can this event be left out when it comes to iTableViews or not?
Here is my troublesome source code, can someone please advise?
https://www.dropbox.com/s/2a0xyv9w2o1smtz/iBibleShow.zip?dl=0
This followed this approach here: https://www.b4x.com/android/forum/threads/multiple-pages-example.48170/#post-312440
With my code, I have initialized my listviews inside pg.IsInitialized, when I call my show method for the page concerned, the first time the lists are loaded properly. After I click the back button and open the same page from the listview the items dont show on the iTableView anymore.