use of com.naman14.timber.widgets.DividerItemDecoration in project Timber by naman14.
the class PlaylistDetailActivity method setRecyclerViewAapter.
private void setRecyclerViewAapter() {
recyclerView.setAdapter(mAdapter);
if (animate && TimberUtils.isLollipop() && PreferencesUtility.getInstance(mContext).getAnimations()) {
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
recyclerView.addItemDecoration(new DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL_LIST, R.drawable.item_divider_white));
}
}, 250);
} else
recyclerView.addItemDecoration(new DividerItemDecoration(mContext, DividerItemDecoration.VERTICAL_LIST, R.drawable.item_divider_white));
}
Aggregations