Log.w("DividerItem","@android:attr/listDivider was not set in the theme used for this DividerItemDecoration. Please set that attribute all call setDrawable()");
}
a.recycle();
this.setOrientation(orientation);
}
publicvoidsetOrientation(intorientation){
if(orientation!=0&&orientation!=1){
thrownewIllegalArgumentException("Invalid orientation. It should be either HORIZONTAL or VERTICAL");
}else{
this.mOrientation=orientation;
}
}
publicvoidsetDrawable(@NonNullDrawabledrawable){
if(drawable==null){
thrownewIllegalArgumentException("Drawable cannot be null.");