A Alisson Active Member Licensed User Jan 20, 2016 #1 How can close de Activity.LoadLayout("1") and open the new Activity.LoadLayout("2"), this my code: Sub fazer_Click ' my click verify the login and pass, the next is redirect to one layout login1 = login.Text pass1 = pass.Text Activity.RemoveViewAt("1") ' I wait closed the Layout 1.bal, but not closed If login1 = "1" And pass1 = "1" Then Activity.LoadLayout("2") End If End Sub Thanks very much!
How can close de Activity.LoadLayout("1") and open the new Activity.LoadLayout("2"), this my code: Sub fazer_Click ' my click verify the login and pass, the next is redirect to one layout login1 = login.Text pass1 = pass.Text Activity.RemoveViewAt("1") ' I wait closed the Layout 1.bal, but not closed If login1 = "1" And pass1 = "1" Then Activity.LoadLayout("2") End If End Sub Thanks very much!
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2016 #2 Please use [code]code here...[/code] tags when posting code. Layouts are not closed or opened. When you load a layout it adds the views to the activity or panel. See this tutorial: https://www.b4x.com/android/forum/threads/8416/#content Upvote 0
Please use [code]code here...[/code] tags when posting code. Layouts are not closed or opened. When you load a layout it adds the views to the activity or panel. See this tutorial: https://www.b4x.com/android/forum/threads/8416/#content