当move手势太快,降低频率


new Handler().postDelayed(new Runnable() { @Override public void run() { adapter.setSelectedPosition(mNowSelect); } },100);

当move手势太快,降低频率,不然会报以下的错误

  W/View: requestLayout() improperly called by com.google.android.material.textview.MaterialTextView{f9f71a2 V.ED..... ........ 0,0-108,53 #7f0900c6 app:id/listText} during second layout pass: posting in next frame

posted @ 2020-11-10 16:02  chlips  阅读(112)  评论(0编辑  收藏  举报