Sataneq New Member Jul 19, 2014 #1 Hi. Firstly I want to say I'm beginner. I made few apps already but basic quiz or similar ones. Now I want make next step by adding few Layouts in one activity. My first quiz had 14 Activities. Each one for another question. And that is a bit weird. I found easier way to do it but it doesn't make sens to me. Now my question is can anybody explain me this or if you know easier way to do it? Sub RemoveViews Dim i As Int For i=Activity.NumberOfViews-1 To 0 Step -1 Activity.RemoveViewAt(i) Next End Sub I have 2 layouts already. The app work fine but I want to understand what I'm writing right? Thank you anybody for answer!!!!
Hi. Firstly I want to say I'm beginner. I made few apps already but basic quiz or similar ones. Now I want make next step by adding few Layouts in one activity. My first quiz had 14 Activities. Each one for another question. And that is a bit weird. I found easier way to do it but it doesn't make sens to me. Now my question is can anybody explain me this or if you know easier way to do it? Sub RemoveViews Dim i As Int For i=Activity.NumberOfViews-1 To 0 Step -1 Activity.RemoveViewAt(i) Next End Sub I have 2 layouts already. The app work fine but I want to understand what I'm writing right? Thank you anybody for answer!!!!
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2014 #2 You can call Activity.RemoveAllViews instead. However it is usually better to use a different activity for each layout. Upvote 0
You can call Activity.RemoveAllViews instead. However it is usually better to use a different activity for each layout.