@Test public void testPrimaryIconIsNotClickableWithoutListener() { SeekbarListItem item0 = initSeekbarListItem(); item0.setPrimaryActionIcon(android.R.drawable.sym_def_app_icon); SeekbarListItem item1 = initSeekbarListItem(); item1.setPrimaryActionIcon(new ColorDrawable(Color.BLACK)); setupPagedListView(Arrays.asList(item0, item1)); assertFalse(getViewHolderAtPosition(0).getPrimaryIcon().isClickable()); assertFalse(getViewHolderAtPosition(1).getPrimaryIcon().isClickable()); }
public void setPrimaryActionIcon(@DrawableRes int iconResId) { setPrimaryActionIcon(mContext.getDrawable(iconResId)); }
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setPrimaryActionIcon(@DrawableRes int iconResId) { setPrimaryActionIcon(mContext.getDrawable(iconResId)); } }
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setPrimaryActionIcon(@DrawableRes int iconResId) { setPrimaryActionIcon(mContext.getDrawable(iconResId)); } SeekbarListItem(Context context); }
SeekbarListItem extends ListItem<SeekbarListItem.ViewHolder> { public void setPrimaryActionIcon(@DrawableRes int iconResId) { setPrimaryActionIcon(mContext.getDrawable(iconResId)); } 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 setPrimaryActionIcon(@DrawableRes int iconResId) { setPrimaryActionIcon(mContext.getDrawable(iconResId)); } 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);  }