com.zx.zxutils.other.ZXRecyclerAdapter.ZxRvHolder类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(77)

本文整理了Java中com.zx.zxutils.other.ZXRecyclerAdapter.ZxRvHolder类的一些代码示例,展示了ZxRvHolder类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZxRvHolder类的具体详情如下:
包路径:com.zx.zxutils.other.ZXRecyclerAdapter.ZxRvHolder
类名称:ZxRvHolder

ZxRvHolder介绍

暂无

代码示例

代码示例来源:origin: StannyBing/ZXUtils

public TextView getTextView(int id) {
  return get(id);
}

代码示例来源:origin: StannyBing/ZXUtils

public RvHolder(View itemView) {
  super(itemView);
  viewHolder = ZxRvHolder.getViewHolder(itemView);
}

代码示例来源:origin: StannyBing/ZXUtils

public void setTextView(int id, CharSequence charSequence) {
  getTextView(id).setText(charSequence);
}

代码示例来源:origin: StannyBing/ZXUtils

public static ZxRvHolder getViewHolder(View view) {
  ZxRvHolder viewHolder = (ZxRvHolder) view.getTag();
  if (viewHolder == null) {
    viewHolder = new ZxRvHolder(view);
    view.setTag(viewHolder);
  }
  return viewHolder;
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
  public void onBindHolder(ZxRvHolder holder, Object itemEntity, int position) {
    holder.getTextView(R.id.tv_text).setText(datalist.get(position));
  }
}

代码示例来源:origin: StannyBing/ZXUtils

public Button getButton(int id) {
  return get(id);
}

代码示例来源:origin: StannyBing/ZXUtils

public ImageView getImageView(int id) {
  return get(id);
}

相关文章

ZxRvHolder类方法