-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why don‘t use ViewHolder? #7
Comments
I did try ViewHolder, there was no difference in performance, in fact, it causes me some problems. Can you give more details about how did you get 20M, what is the environment of testing? did you use the existing test code? Can you suggest anything else to improve memory usage? If you are getting images from drawable, try to move images to drawable-nodpi and test memory usage, please let me know if there is any difference in performance.. |
it works fine with recyclerview. here is the adapter implementation in kotlin. im posting here just to help other people as the listview does not work in all cases. we need to upgrade it to recyclerview. i modified your adapter to suite my needs but here is an example: `class TimelineViewAdapter constructor(var context:Context,var resource:Int, var RowDataList:ArrayList) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
I have gotten the Memory data in running,and I found it occupied much more memory size up to 20M.
The text was updated successfully, but these errors were encountered: