Yayou49 Active Member Licensed User Jan 23, 2016 #1 Hi, I'm in activity(1) and I start layout1 whith activity.loadlayout("layout1"). On on press button in the activity(1) I load a new layout activity.loadlayout("layout2"). How to close layout2 and go back to layout1 ?
Hi, I'm in activity(1) and I start layout1 whith activity.loadlayout("layout1"). On on press button in the activity(1) I load a new layout activity.loadlayout("layout2"). How to close layout2 and go back to layout1 ?
S Sanxion Active Member Licensed User Longtime User Jan 23, 2016 #2 Yayou49 said: Hi, I'm in activity(1) and I start layout1 whith activity.loadlayout("layout1"). On on press button in the activity(1) I load a new layout activity.loadlayout("layout2"). How to close layout2 and go back to layout1 ? Click to expand... You can use Activity.Start("layout1") This will close your current layout and transfer you to "layout1". Upvote 0
Yayou49 said: Hi, I'm in activity(1) and I start layout1 whith activity.loadlayout("layout1"). On on press button in the activity(1) I load a new layout activity.loadlayout("layout2"). How to close layout2 and go back to layout1 ? Click to expand... You can use Activity.Start("layout1") This will close your current layout and transfer you to "layout1".
imbault Well-Known Member Licensed User Longtime User Jan 23, 2016 #3 You cannot close a layout, but you can remove views with Activity.RemoveAllViews or specifically for your layout2, have a look on : https://www.b4x.com/android/forum/threads/activity-closelayout.16294/#content Upvote 0
You cannot close a layout, but you can remove views with Activity.RemoveAllViews or specifically for your layout2, have a look on : https://www.b4x.com/android/forum/threads/activity-closelayout.16294/#content