テキスト色を変更するように

This commit is contained in:
ろむねこ 2024-01-29 10:48:53 +09:00
parent 5da9e14d61
commit 6693275dd9
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -57,7 +57,7 @@ public class ListItemAdapter extends RecyclerView.Adapter<ListItemAdapter.ListIt
ChipGroup chipGroup = holder.tagGroup;
Chip chip = new Chip(chipGroup.getContext());
chip.setText(listItem.getTagList().get(i).getName());
chip.setBackgroundColor(Color.parseColor(listItem.getTagList().get(i).getColor()));
chip.setTextColor(Color.parseColor(listItem.getTagList().get(i).getColor()));
chipGroup.addView(chip);
}
holder.tagGroup.setVisibility(View.VISIBLE);