BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #1 Hi! I have used Code: Copy ImageView1.SetVisibleAnimated(10000, True) and ImageView1 is visible, but veeeery fast, not 10 second... Why? Best regards
Hi! I have used Code: Copy ImageView1.SetVisibleAnimated(10000, True) and ImageView1 is visible, but veeeery fast, not 10 second... Why? Best regards
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #2 can you upload a sample project which shows the problem? Upvote 0
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #3 Yes, of coz And I have second problem, if I start in emulator then always have error. Attachments FollowMe.zip FollowMe.zip 7.2 KB · Views: 412 Upvote 0
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #4 Code: Copy Sub Activity_Resume ImageView1.SetVisibleAnimated(10000,True) '10 sec to show 'reklamy 'AdView1.Resume End Sub Works as expected... Upvote 0
Code: Copy Sub Activity_Resume ImageView1.SetVisibleAnimated(10000,True) '10 sec to show 'reklamy 'AdView1.Resume End Sub Works as expected...
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #5 dont try to use visibleanimated with a time of 10 seconds and a line later you call visibleanimated to hide it. Call the animation when the activity is running (after or in resume). Set a timer to check things after the time is gone (maybe hide the label). Maybe you are complicating things. What exatly you want to archieve??? Upvote 0
dont try to use visibleanimated with a time of 10 seconds and a line later you call visibleanimated to hide it. Call the animation when the activity is running (after or in resume). Set a timer to check things after the time is gone (maybe hide the label). Maybe you are complicating things. What exatly you want to archieve???
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #6 On Galaxy S7 Code: Copy Sub Activity_Resume ImageView1.SetVisibleAnimated(10000,True) '10 sec to show ImageView1.SetVisibleAnimated(10000,False) 'reklamy AdView1.Resume End Sub shows immediately disappears approx. 1.5 seconds Upvote 0
On Galaxy S7 Code: Copy Sub Activity_Resume ImageView1.SetVisibleAnimated(10000,True) '10 sec to show ImageView1.SetVisibleAnimated(10000,False) 'reklamy AdView1.Resume End Sub shows immediately disappears approx. 1.5 seconds
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #7 same here. REMOVE the second call! Upvote 0
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #8 I want to show ImageView (for now) in ~200ms, and hide in ~200ms (maybe 500ms) I don't now how fast exactly, then I want to test Upvote 0
I want to show ImageView (for now) in ~200ms, and hide in ~200ms (maybe 500ms) I don't now how fast exactly, then I want to test
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #9 call it one time start a timer with 10 seconds in timer tick disable the imer and call setvisibleanimated again to hide it Upvote 0
call it one time start a timer with 10 seconds in timer tick disable the imer and call setvisibleanimated again to hide it
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #10 BaGRoS said: in ~200ms Click to expand... then use setvisibleanimated with 200 as time. Use a timer to call after 200 ms and then disable the timer and hide it or whatever. You cannot hold the mainthread. Upvote 0
BaGRoS said: in ~200ms Click to expand... then use setvisibleanimated with 200 as time. Use a timer to call after 200 ms and then disable the timer and hide it or whatever. You cannot hold the mainthread.
DonManfred Expert Licensed User Longtime User Apr 12, 2016 #11 again DonManfred said: What exatly you want to archieve??? Click to expand... Upvote 0
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #12 Ok, I make another test: Code: Copy Sub Button1_Click ImageView1.SetVisibleAnimated(10000,True) '10 sec to show End Sub Sub Button2_Click ImageView1.SetVisibleAnimated(10000,False) '10 sec to hide End Sub I expect 10 sec to show but: samsung s7 Last edited: Apr 12, 2016 Upvote 0
Ok, I make another test: Code: Copy Sub Button1_Click ImageView1.SetVisibleAnimated(10000,True) '10 sec to show End Sub Sub Button2_Click ImageView1.SetVisibleAnimated(10000,False) '10 sec to hide End Sub I expect 10 sec to show but: samsung s7
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #13 DonManfred said: What exatly you want to archieve??? Click to expand... Show and hide ImageView with fade in and fade out EXACTLY in 400ms or 1000ms (I don't know now) on ALL PHONE from 1 core to 8 core like mine Then I start from test 10 sec because I can see IS 10 sec OR NOT Last edited: Apr 12, 2016 Upvote 0
DonManfred said: What exatly you want to archieve??? Click to expand... Show and hide ImageView with fade in and fade out EXACTLY in 400ms or 1000ms (I don't know now) on ALL PHONE from 1 core to 8 core like mine Then I start from test 10 sec because I can see IS 10 sec OR NOT
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2016 #14 You can use CallSubPlus here: https://www.b4x.com/search?query=CallSubPlus Code: Copy ImageView1.SetVisibleAnimated(10000,True) csu.CallSubPlus(Me, "hide_ImageView", 10000) ... Sub hide_ImageView ImageView1.SetVisibleAnimated(10000,False) End Sub Upvote 0
You can use CallSubPlus here: https://www.b4x.com/search?query=CallSubPlus Code: Copy ImageView1.SetVisibleAnimated(10000,True) csu.CallSubPlus(Me, "hide_ImageView", 10000) ... Sub hide_ImageView ImageView1.SetVisibleAnimated(10000,False) End Sub
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #15 Please check post 12, working but too fast. On CM 12.1 on my Note 2, show and hide without any fade. I am seeking solutions to as many platforms as possible. This question is directly connected with this https://www.b4x.com/android/forum/threads/draw-any-shape.65721/#post-416150 because, maybe I can't used ImageView and must looking for diffrent solution. Last edited: Apr 12, 2016 Upvote 0
Please check post 12, working but too fast. On CM 12.1 on my Note 2, show and hide without any fade. I am seeking solutions to as many platforms as possible. This question is directly connected with this https://www.b4x.com/android/forum/threads/draw-any-shape.65721/#post-416150 because, maybe I can't used ImageView and must looking for diffrent solution.
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #16 Erel said: You can use CallSubPlus here: https://www.b4x.com/search?query=CallSubPlus Code: Copy ImageView1.SetVisibleAnimated(10000,True) csu.CallSubPlus(Me, "hide_ImageView", 10000) ... Sub hide_ImageView ImageView1.SetVisibleAnimated(10000,False) End Sub Click to expand... After Code: Copy Public csu As CallSubUtils i have info: Unknown type: callsubutils Upvote 0
Erel said: You can use CallSubPlus here: https://www.b4x.com/search?query=CallSubPlus Code: Copy ImageView1.SetVisibleAnimated(10000,True) csu.CallSubPlus(Me, "hide_ImageView", 10000) ... Sub hide_ImageView ImageView1.SetVisibleAnimated(10000,False) End Sub Click to expand... After Code: Copy Public csu As CallSubUtils i have info: Unknown type: callsubutils
BaGRoS Active Member Licensed User Longtime User Apr 12, 2016 #17 And now... The problem is that I disabled the animations from the developer option the android settings, and when I set to x1.0 and disable GPU in 2D, then everything start working well. I must forget about this. I must looking for another way, independent of the settings android. Upvote 0
And now... The problem is that I disabled the animations from the developer option the android settings, and when I set to x1.0 and disable GPU in 2D, then everything start working well. I must forget about this. I must looking for another way, independent of the settings android.
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2016 #18 BaGRoS said: Unknown type: callsubutils Click to expand... You need to add CallSubUtils class to your project. Upvote 0
BaGRoS said: Unknown type: callsubutils Click to expand... You need to add CallSubUtils class to your project.
BaGRoS Active Member Licensed User Longtime User Apr 13, 2016 #19 Thank You. For now most important question is https://www.b4x.com/android/forum/threads/draw-any-shape.65721/#post-416150 Upvote 0
Thank You. For now most important question is https://www.b4x.com/android/forum/threads/draw-any-shape.65721/#post-416150
J JoeInvestiga Member Jan 21, 2017 #20 Sub Process_Globals Public csu As CallSubUtils End Sub Sub Service_Create csu.Initialize End Sub Excuse me that I will not write in english. ¿Qué librería (libraries) debo de tener cargado (loaded) para CallSubUtils este ACTIVO/FUNCIONAL en B4J? He cargado todas las librerías que me despliega el Libraries Manager. Por que, me despliega el siguiente mensaje de ERROR: Unknown type: CallSubUtils Are you missing a library reference? Gracias por su apoyo. Upvote 0
Sub Process_Globals Public csu As CallSubUtils End Sub Sub Service_Create csu.Initialize End Sub Excuse me that I will not write in english. ¿Qué librería (libraries) debo de tener cargado (loaded) para CallSubUtils este ACTIVO/FUNCIONAL en B4J? He cargado todas las librerías que me despliega el Libraries Manager. Por que, me despliega el siguiente mensaje de ERROR: Unknown type: CallSubUtils Are you missing a library reference? Gracias por su apoyo.