Sunday, January 19, 2014
About sliding fluency in android listview optimization problem
I do not know you have not noticed this problem, listview sliding when feeling is not very smooth, and in the end to stop the slide when the feeling is very fast, without a cushion feeling watched Apple products, Apple found a sliding halt It is good, very smooth, when to stop giving a clear sense of the slow stop. But considering the sliding effect listview google write algorithms that should be used when there is no problem, but I think google certainly provides a common algorithm on different machines is not necessarily the best effect, and so want to optimize this part of the content. But one day saw the source, listview, abslistview see a big head, did not find in the end is what controls how much distance each slide, slide in the process of rendering animation that is not also used as a speed (Interpolator) curve, and how to control the slide slowing this process, who has done in this regard or understanding optimized code in this area, to discuss next?
Reply:
Well, can think this looks good! Oh, Bangding!
Reply:
Oh, top up, do not let the message sink
Reply:
No one to discuss ah, we Come ah
Reply:
mark .....
Reply:
A lot of information saying convertView reuse, using Tag also allows reuse of elements, and I did so is still very slow, I do not know how to further improve.
Information Address: http://blog.csdn.net/z104207/article/details/6667829
Reply:
Optimization is on the one hand, but also with the relevant body memory, mobile equipment and more stuff will lead to slow slide
Reply:
This is based on the application layer to improve the sliding speed up, or will it be restricted list itself sliding algorithm, I want to do here is to optimize listview sliding algorithm itself, I see the sliding operation of the controls are carried out in Scoller.java The key is how to optimize this part.
Reply:
You can look at the android source code came out of his uniform deceleration according to a sliding movement, under normal circumstances, as the function f * s reduced to 0 when stopped sliding, I feel the reason is not smooth uniform deceleration may cause the final deceleration relatively quickly, if they can be modified to change the deceleration movement, should be a good point, but if you change the variable deceleration is estimated to be more troublesome, is thinking.
Reply:
Recently there is no conclusion? Now that we have encountered this problem, if there is hope to share with the conclusions. Thank you!
Reply:
I also feel listview slide is not smooth, personal feel the problem is not the application layer of it, whether it is more the underlying problem? Slide up feeling refreshed view frames too low. I do not know how to optimize the landlord? Can fluency and viva, Netease clients compared to?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment