工具箱(为对接数据接口),解决footeritem高度不一问题和开服表闪退问题
This commit is contained in:
@ -136,8 +136,11 @@ public class KaiFuActivity extends BaseActivity implements KaiFuDialogAdapter.On
|
||||
smoothMove = false;
|
||||
int n = mMovePosition - layoutManager.findFirstVisibleItemPosition();
|
||||
if (0 <= n && n < mRecyclerView.getChildCount()) {
|
||||
int top = layoutManager.findViewByPosition(n).getTop();
|
||||
mRecyclerView.smoothScrollBy(0, top);
|
||||
View view = layoutManager.findViewByPosition(n);
|
||||
if (view!= null) {
|
||||
int top = view.getTop();
|
||||
mRecyclerView.smoothScrollBy(0, top);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user