K Kamac Active Member Licensed User Longtime User Aug 22, 2011 #1 Is there a way to show my imageview just before using: RemoveViews with code: Code: Copy Sub RemoveViews Dim i As Int For i=Activity.NumberOfViews-1 To 0 Step -1 Activity.RemoveViewAt(i) Next End Sub so that my imageview will show? current code: Code: Copy loading.Visible = True RemoveViews Activity.LoadLayout("something.bal") All it's doing for now is changing layout, which takes a little, so i'd like to show loading bar, yet for now it won't display it, just change layout when loaded. Also, i'd like to avoid using timer.
Is there a way to show my imageview just before using: RemoveViews with code: Code: Copy Sub RemoveViews Dim i As Int For i=Activity.NumberOfViews-1 To 0 Step -1 Activity.RemoveViewAt(i) Next End Sub so that my imageview will show? current code: Code: Copy loading.Visible = True RemoveViews Activity.LoadLayout("something.bal") All it's doing for now is changing layout, which takes a little, so i'd like to show loading bar, yet for now it won't display it, just change layout when loaded. Also, i'd like to avoid using timer.
thedesolatesoul Expert Licensed User Longtime User Aug 23, 2011 #2 Just make sure you dont remove the imageview from the view. So in RemoveViews, add if Activity.RemoveViewAt(i).Name <> loading then Activity.RemoveViewAt(i) or something like that...i cant remember the syntax right now. Upvote 0
Just make sure you dont remove the imageview from the view. So in RemoveViews, add if Activity.RemoveViewAt(i).Name <> loading then Activity.RemoveViewAt(i) or something like that...i cant remember the syntax right now.
agraham Expert Licensed User Longtime User Aug 23, 2011 #3 You could try Remove views Add ImageView DoEvents LoadLayout or Add ImageView DoEvents Remove views LoadLayout Upvote 0
You could try Remove views Add ImageView DoEvents LoadLayout or Add ImageView DoEvents Remove views LoadLayout
K Kamac Active Member Licensed User Longtime User Aug 23, 2011 #4 Remove views Add ImageView DoEvents LoadLayout Click to expand... Works :sign0060: Upvote 0