code: public void setDividerDrawable(Drawable divider) {
          if (divider == mDivider) {
              return;
          }
  
          //Fix for issue #379
          if (divider instanceof ColorDrawable && Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
              divider = new IcsColorDrawable((ColorDrawable) divider);
          }
  
          mDivider = divider;
          if (divider != null) {
              mDividerWidth = divider.getIntrinsicWidth();
              mDividerHeight = divider.getIntrinsicHeight();
          } else {
              mDividerWidth = 0;
              mDividerHeight = 0;
          }
          setWillNotDraw(divider == null);
          requestLayout();
      }
docs: Set a drawable to be used as a divider between items.
  @param divider Drawable that will divide each item.
  @see #setShowDividers(int)