RecycleView gone visible switch will call again onBindViewHolder load data
Because of the item showed in the video thumbnails, local use of Glide
Log. W (" onBindViewHolder System. CurrentTimeMillis () + "" + list. Get (position). GetFile_title ());
Glide. With (context). AsBitmap (.) the load (list. Get (position). GetFile_path ())
Into (new SimpleTarget
@ Override
Public void onResourceReady (@ NonNull Bitmap resource, @ Nullable Transition<? Super Bitmap> The transition) {
//requesting high bitmap width must be as large as the video resolution, called after so do related processing, so the load slowly
Log. W (" onBindViewHolder System. CurrentTimeMillis () + "" + list. Get (position). GetFile_title ());
Because the video resolution is one of the biggest difference output reached a maximum 3840 * 2160, 2 times more than 2000 ms,
So the main reason lies in glide for bitmap here time consuming, so after the library handling pictures take is around 30 ms
How to do it only when initializing load data, switch to the invisible visible when no longer reload, or any other access to video shrinkage method of less time-consuming