diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/userpage/UserListViewAdapter.java b/app/src/main/java/org/ntlab/acanthus_client/views/userpage/UserListViewAdapter.java index 0f50618..6f8ce34 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/userpage/UserListViewAdapter.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/userpage/UserListViewAdapter.java @@ -19,14 +19,14 @@ //参照保存データ static class ViewHolder { - TextView textViewUid; + TextView textViewName; } - public UserListViewAdapter(Context context, int layoutId, ArrayList name) { + public UserListViewAdapter(Context context, int layoutId, ArrayList names) { super(); this.inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); this.layoutId = layoutId; - this.nameList = name; + this.nameList = names; } @Override @@ -38,15 +38,15 @@ convertView = inflater.inflate(layoutId, parent, false); //ViewHolderの生成とレイアウト内テキストのセット viewHolder = new UserListViewAdapter.ViewHolder(); - viewHolder.textViewUid = convertView.findViewById(R.id.followOrFollowerUid); + viewHolder.textViewName = convertView.findViewById(R.id.followOrFollowerName); convertView.setTag(viewHolder); } else { //既に初期セットの処理がされている場合、再利用する viewHolder = (UserListViewAdapter.ViewHolder) convertView.getTag(); } - //ViewHolder内のtextViewName,Dateに各ポジションのデータをセット - if (nameList != null) viewHolder.textViewUid.setText(nameList.get(position)); + //ViewHolder内のtextViewNameに各ポジションのデータをセット + if (nameList != null) viewHolder.textViewName.setText(nameList.get(position)); return convertView; }