@Test public void testSettingSupplementalIconWithDrawable() { Drawable drawable = mActivity.getDrawable(android.R.drawable.sym_def_app_icon); SeekbarListItem item = initSeekbarListItem(); item.setSupplementalIcon(drawable, false); setupPagedListView(Arrays.asList(item)); assertThat(getViewHolderAtPosition(0).getSupplementalIcon().getDrawable(), is(equalTo(drawable))); }
public void setSupplementalIcon(@DrawableRes int iconResId, boolean showSupplementalIconDivider) { setSupplementalIconInfo(mContext.getDrawable(iconResId), showSupplementalIconDivider); }
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setSupplementalIcon(@DrawableRes int iconResId, boolean showSupplementalIconDivider) { setSupplementalIconInfo(mContext.getDrawable(iconResId), showSupplementalIconDivider); } }
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setSupplementalIcon(@DrawableRes int iconResId, boolean showSupplementalIconDivider) { setSupplementalIconInfo(mContext.getDrawable(iconResId), showSupplementalIconDivider); } SeekbarListItem(Context context); }
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setSupplementalIcon(@DrawableRes int iconResId, boolean showSupplementalIconDivider) { setSupplementalIconInfo(mContext.getDrawable(iconResId), showSupplementalIconDivider); } SeekbarListItem(Context context); static ViewHolder createViewHolder(View itemView); @Override int getViewType(); void setMax(int max); void setProgress(int progress); void setSecondaryProgress(int secondaryProgress); void setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener listener); void setText(String text); void setPrimaryActionIcon(@DrawableRes int iconResId); void setPrimaryActionIcon(Drawable drawable); void setPrimaryActionIconListener(View.OnClickListener onClickListener); void setPrimaryActionEmptyIcon(); void setSupplementalIcon(@DrawableRes int iconResId,
            boolean showSupplementalIconDivider); void setSupplementalIcon(Drawable drawable, boolean showSupplementalIconDivider); void setSupplementalIconListener(View.OnClickListener listener); @Deprecated void setSupplementalIcon(Drawable drawable, boolean showSupplementalIconDivider,
            @Nullable  View.OnClickListener listener); void setSupplementalEmptyIcon(boolean seekbarOffsetDividerWidth); }
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setSupplementalIcon(@DrawableRes int iconResId, boolean showSupplementalIconDivider) { setSupplementalIconInfo(mContext.getDrawable(iconResId), showSupplementalIconDivider); } SeekbarListItem(Context context); static ViewHolder createViewHolder(View itemView); @Override int getViewType(); void setMax(int max); void setProgress(int progress); void setSecondaryProgress(int secondaryProgress); void setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener listener); void setText(String text); void setPrimaryActionIcon(@DrawableRes int iconResId); void setPrimaryActionIcon(Drawable drawable); void setPrimaryActionIconListener(View.OnClickListener onClickListener); void setPrimaryActionEmptyIcon(); void setSupplementalIcon(@DrawableRes int iconResId,
            boolean showSupplementalIconDivider); void setSupplementalIcon(Drawable drawable, boolean showSupplementalIconDivider); void setSupplementalIconListener(View.OnClickListener listener); @Deprecated void setSupplementalIcon(Drawable drawable, boolean showSupplementalIconDivider,
            @Nullable  View.OnClickListener listener); void setSupplementalEmptyIcon(boolean seekbarOffsetDividerWidth);  }