Shay Well-Known Member Licensed User Longtime User Sep 7, 2011 #1 Hi I am trying to write improved preference scroll menu http://www.b4x.com/forum/basic4andr...trying-build-improved-preferenceactivity.html I wrote the following code (attached file) but when I side up and down there is some "vibration" - it is not smooth how can I fix it?
Hi I am trying to write improved preference scroll menu http://www.b4x.com/forum/basic4andr...trying-build-improved-preferenceactivity.html I wrote the following code (attached file) but when I side up and down there is some "vibration" - it is not smooth how can I fix it?
thedesolatesoul Expert Licensed User Longtime User Sep 7, 2011 #2 You are right. It is not smooth like klaus' examples. Maybe there are too many views on the scrollview? I have tried a couple of things but I am not sure yet. Edit: May be running out of memory? Although I do not think so. ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** Displayed activity Scroll.Test/.main: 1625 ms (total 1625 ms) GC_EXPLICIT freed 3561 objects / 97904 bytes in 59ms GC_EXPLICIT freed 183 objects / 12856 bytes in 132ms GC_EXPLICIT freed 28 objects / 1368 bytes in 139ms Last edited: Sep 7, 2011 Upvote 0
You are right. It is not smooth like klaus' examples. Maybe there are too many views on the scrollview? I have tried a couple of things but I am not sure yet. Edit: May be running out of memory? Although I do not think so. ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** Displayed activity Scroll.Test/.main: 1625 ms (total 1625 ms) GC_EXPLICIT freed 3561 objects / 97904 bytes in 59ms GC_EXPLICIT freed 183 objects / 12856 bytes in 132ms GC_EXPLICIT freed 28 objects / 1368 bytes in 139ms
Shay Well-Known Member Licensed User Longtime User Sep 8, 2011 #3 I think you are right I changed all the views to 1 view I think it is good now, can you check also on your device? Also how can I give it the "feel" as list (with the bouncing feel) Upvote 0
I think you are right I changed all the views to 1 view I think it is good now, can you check also on your device? Also how can I give it the "feel" as list (with the bouncing feel)
Shay Well-Known Member Licensed User Longtime User Sep 8, 2011 #4 I checked the code inside my code still not smooth any suggestion? Upvote 0
Shay Well-Known Member Licensed User Longtime User Sep 8, 2011 #5 it seems that also on original example CustomScrollView2 it has the same problem http://www.b4x.com/forum/basic4andr...417-another-scrollview-example.html#post47107 how to fix this? Upvote 0
it seems that also on original example CustomScrollView2 it has the same problem http://www.b4x.com/forum/basic4andr...417-another-scrollview-example.html#post47107 how to fix this?
thedesolatesoul Expert Licensed User Longtime User Sep 8, 2011 #6 That was working fine for me. That was actually what I was comparing with. Upvote 0
Shay Well-Known Member Licensed User Longtime User Sep 8, 2011 #7 It seems to me that the problem is with the scrollview since it is happening also with this basic example http://www.b4x.com/forum/basic4andr...7221-list-two-columns-checkbox.html#post41354 try to scroll up even that there is no up and see the "vibrations" Upvote 0
It seems to me that the problem is with the scrollview since it is happening also with this basic example http://www.b4x.com/forum/basic4andr...7221-list-two-columns-checkbox.html#post41354 try to scroll up even that there is no up and see the "vibrations"
klaus Expert Licensed User Longtime User Sep 8, 2011 #8 Do you run the program in the Emulator or on a device? I see the same in the Emulator. Best regards. Upvote 0
Shay Well-Known Member Licensed User Longtime User Sep 8, 2011 #9 I am using device Galaxy S2 Upvote 0
Shay Well-Known Member Licensed User Longtime User Sep 9, 2011 #10 Hi Klaus / Erel are you checking this issue? Thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 11, 2011 #11 I've checked this example: http://www.b4x.com/forum/basic4andr...7221-list-two-columns-checkbox.html#post41354 It runs smooth. Please use File - Export as zip when uploading your project. Upvote 0
I've checked this example: http://www.b4x.com/forum/basic4andr...7221-list-two-columns-checkbox.html#post41354 It runs smooth. Please use File - Export as zip when uploading your project.