edgeryder1000 Member Licensed User Longtime User Jul 12, 2013 #1 How can I find make something happen (like hiding the actionbar) when the user clicks on a scrollview. Can it be done using the reflection library? If anyone has a solution, please post it! Thanks
How can I find make something happen (like hiding the actionbar) when the user clicks on a scrollview. Can it be done using the reflection library? If anyone has a solution, please post it! Thanks
D drachmad Member Licensed User Longtime User Jul 12, 2013 #2 I don't know if it help. .SetOnTouchListener You can search with that key or I have a sample in: http://www.b4x.com/forum/basic4android-getting-started-tutorials/30878-newbie-sample-simple-timer-up-down-counter-up-down.html Upvote 0
I don't know if it help. .SetOnTouchListener You can search with that key or I have a sample in: http://www.b4x.com/forum/basic4android-getting-started-tutorials/30878-newbie-sample-simple-timer-up-down-counter-up-down.html
edgeryder1000 Member Licensed User Longtime User Jul 13, 2013 #3 Thanks I looked at your code and it seems like it would work. Thanks! Edit: Hmm, I don't really understand how this works. I tried: B4X: Dim r as reflector r.target = scrollview1 r.setonclicklistener("scv_click") sub scv_click(viewtag as object) toastmessage("success", false) end sub but no dice. How did you do it? Last edited: Jul 13, 2013 Upvote 0
Thanks I looked at your code and it seems like it would work. Thanks! Edit: Hmm, I don't really understand how this works. I tried: B4X: Dim r as reflector r.target = scrollview1 r.setonclicklistener("scv_click") sub scv_click(viewtag as object) toastmessage("success", false) end sub but no dice. How did you do it?
Erel B4X founder Staff member Licensed User Longtime User Jul 14, 2013 #4 Try: B4X: r.target = scrollview1.Panel Upvote 0
edgeryder1000 Member Licensed User Longtime User Jul 16, 2013 #5 Thanks a heap guys, everything works Upvote 0