ApplyAdapter.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:polar-dashboard 作者:
@Override
public void onBindViewHolder(ApplyVH holder, int position) {
  if (getItemViewType(position) == 1) {
    holder.icon.setColorFilter(
        DialogUtils.resolveColor(mContext, android.R.attr.textColorSecondary),
        PorterDuff.Mode.SRC_IN);
    return;
  }

  if (mQuickApplyLauncher != null) {
    position--;
  }
  final Launcher launcher = mLaunchers[position];
  holder.title.setText(launcher.title);
  holder.icon.setBackgroundColor(launcher.color);
  holder.title.setBackgroundColor(launcher.colorDark);
  holder.icon.setImageResource(launcher.icon);
  holder.card.setCardBackgroundColor(launcher.color);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号