Android模仿引导页面列表自动滑动

tech2024-02-21  72

private void smooth(RecyclerView data_rv) { MyApplication.getInstance().getHandler().postDelayed(new Runnable() { @Override public void run() { int w = data_rv.getWidth(); data_rv.smoothScrollToPosition(16); } }, 1000); MyApplication.getInstance().getHandler().postDelayed(new Runnable() { @Override public void run() { data_rv.smoothScrollToPosition(0); } }, 3000); }
最新回复(0)