I am doing Popular-Movies project stage ONE! I have one problem by using Glide Library to load the picture from TheMovieDB API.
I am using a recylerview adapter to display my data model in a Grid layout. Everything works very well except by loading some posters into the Gridlayout that some of them haven't been loaded properly. Please take a look at my screenshot and let me know if you come up with some idea.
by adding "fixedsize" and "cachesize" to my recyclerview that solve my problem, but I think I have go to find that how I can solve the problem for the dynamic environment.
recyclerView.setHasFixedSize(true);
recyclerView.setItemViewCacheSize(20);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.