EfficientViewHolder extends RecyclerView.ViewHolder { public void onViewAttachedToWindow() { } EfficientViewHolder(View itemView); void setAdapter(EfficientAdapter<T> adapter); @Nullable EfficientAdapter<T> getAdapter(); void onBindView(@Nullable T item, int position); @Nullable T getObject(); int getLastBindPosition(); @NonNull View getView(); @NonNull Context getContext(); @NonNull Resources getResources(); void onViewRecycled(); void onViewAttachedToWindow(); void onViewDetachedFromWindow(); boolean isClickable(); boolean isLongClickable(); View.OnClickListener getOnClickListener(boolean adapterHasListener); View.OnLongClickListener getOnLongClickListener(boolean adapterHasListener); void clearViewsCached(); void clearViewCached(int viewId); void clearViewCached(int parentId, int viewId); @Nullable T findViewByIdEfficient(int id); @Nullable T findViewByIdEfficient(int parentId, int id); void setVisibility(int viewId, int visibility); void setBackground(int viewId, Drawable drawable); void setBackgroundColor(int viewId, @ColorInt int color); void setBackgroundResource(int viewId, @DrawableRes int resid); void setTag(int viewId, Object tag); void setTag(int viewId, int key, Object tag); void setText(int viewId, CharSequence text); void setText(int viewId, @StringRes int resid); void setTextColor(int viewId, @ColorInt int color); void setTextSize(int viewId, float size); void setTextSize(int viewId, int unit, float size); void setImageViewResource(int viewId, @DrawableRes int resId); void setImageDrawable(int viewId, Drawable drawable); void setImageUri(int viewId, @Nullable Uri uri); void setImageBitmap(int viewId, Bitmap bm);  }
@Test public void testCallableOnViewAttachedToWindow() throws Exception { EfficientViewHolder subject = newEfficientViewHolder(); subject.onViewAttachedToWindow(); }