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);
}
转载请注明原文地址:https://tech.qufami.com/read-15188.html