code: public final void setIconAttribute(@AttrRes final int attributeId) {
          TypedArray typedArray =
                  getContext().getTheme().obtainStyledAttributes(new int[]{attributeId});
          this.icon = typedArray.getDrawable(0);
          this.iconBitmap = null;
          this.iconId = -1;
          this.iconAttributeId = attributeId;
          adaptIcon();
      }
docs: Set the icon of the bottom sheet.
  
  @param attributeId
  The id of the theme attribute, which supplies the icon, which should be set, as an
  {@link Integer} value. The id must point to a valid drawable resource