GalleryLayoutManager
GalleryLayoutManager copied to clipboard
频繁回调onLayoutChildren和item刷新问题
1.内部调了mCurSelectedView.setSelected()导致onLayoutChildren回调频繁
2.onLayoutChildren内部错误的逻辑导致item无法刷新
if (state.getItemCount() != 0 && !state.didStructureChange()) { if (BuildConfig.DEBUG) { Log.d(TAG, "onLayoutChildren: ignore extra layout step"); } return; }