How can I make my view pager more smooth?

纵饮孤独 提交于 2019-12-30 09:29:49

问题


I am using a view pager to show two fragments. One fragment contains a camera preview and the other one just a simple list view.

The problem is, that the whole swipe experience is not as smooth as it should be. And I guess the reason for that is because the UI Thread has to handle the view pager, the camera and the list view all at once.

Now, what can I do about that? What can I run in a background thread? Can I run the view pager in the background?

来源:https://stackoverflow.com/questions/21786022/how-can-i-make-my-view-pager-more-smooth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!