ViewHolder

public class ViewHolder

**以下为辅助方法

Constructors

Link copied to clipboard
public void ViewHolder(Context context, View itemView)

Functions

Link copied to clipboard
public static ViewHolder createViewHolder(Context context, View itemView)
public static ViewHolder createViewHolder(Context context, ViewGroup parent, int layoutId)
Link copied to clipboard
public View getConvertView()
Link copied to clipboard
public T getView<T extends View>(int viewId)
通过viewId获取控件
Link copied to clipboard
public ViewHolder linkify(int viewId)
Link copied to clipboard
public ViewHolder setAlpha(int viewId, float value)
Link copied to clipboard
public ViewHolder setBackgroundColor(int viewId, int color)
Link copied to clipboard
public ViewHolder setBackgroundRes(int viewId, int backgroundRes)
Link copied to clipboard
public ViewHolder setChecked(int viewId, boolean checked)
Link copied to clipboard
public ViewHolder setImageBitmap(int viewId, Bitmap bitmap)
Link copied to clipboard
public ViewHolder setImageDrawable(int viewId, Drawable drawable)
Link copied to clipboard
public ViewHolder setImageResource(int viewId, int resId)
Link copied to clipboard
public ViewHolder setMax(int viewId, int max)
Link copied to clipboard
public ViewHolder setOnClickListener(int viewId, OnClickListener listener)
关于事件的
Link copied to clipboard
public ViewHolder setOnLongClickListener(int viewId, OnLongClickListener listener)
Link copied to clipboard
public ViewHolder setOnTouchListener(int viewId, OnTouchListener listener)
Link copied to clipboard
public ViewHolder setProgress(int viewId, int progress)
public ViewHolder setProgress(int viewId, int progress, int max)
Link copied to clipboard
public ViewHolder setRating(int viewId, float rating)
public ViewHolder setRating(int viewId, float rating, int max)
Link copied to clipboard
public ViewHolder setTag(int viewId, Object tag)
public ViewHolder setTag(int viewId, int key, Object tag)
Link copied to clipboard
public ViewHolder setText(int viewId, int text)

public ViewHolder setText(int viewId, String text)
设置TextView的值
Link copied to clipboard
public ViewHolder setTextColor(int viewId, int textColor)
Link copied to clipboard
public ViewHolder setTextColorRes(int viewId, int textColorRes)
Link copied to clipboard
public ViewHolder setTypeface(Typeface typeface, Array<int> viewIds)
Link copied to clipboard
public ViewHolder setVisible(int viewId, boolean visible)