How to selectively decorate RecyclerView items
问题 I am creating a subclass of ItemDecoration from this gist: https://gist.github.com/alexfu/0f464fc3742f134ccd1e How to make it only decorate items with certain condition? For instance, only decorate items with certain positions, type of ViewHolder, etc. I have modified the above mentioned gist (plus some changes on deprecated Android API) with this code, but all items get decorated anyway: public boolean isDecorated(View view, RecyclerView parent) { RecyclerView.ViewHolder holder = parent