色変更

This commit is contained in:
ろむねこ 2024-01-19 18:46:06 +09:00
parent 038c526652
commit eab00983a8
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@
android:textSize="16sp" android:textSize="16sp"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:text="Placeholder Title" android:text="Placeholder Title"
android:textColor="@color/colorOnSurface"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
@ -41,6 +42,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="14sp" android:textSize="14sp"
android:text="Placeholder Description" android:text="Placeholder Description"
android:textColor="@color/colorOnSurface"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_title" /> app:layout_constraintTop_toBottomOf="@+id/item_title" />

View File

@ -33,7 +33,7 @@ public class ListItemAdapter extends RecyclerView.Adapter<ListItemAdapter.ListIt
public void onBindViewHolder(@NonNull ListItemAdapter.ListItemViewHolder holder, int position) { public void onBindViewHolder(@NonNull ListItemAdapter.ListItemViewHolder holder, int position) {
ListItem listItem = listItems.get(position); ListItem listItem = listItems.get(position);
holder.icon.setImageResource(listItem.getItemType().getIconId()); holder.icon.setImageResource(listItem.getItemType().getIconId());
holder.icon.setColorFilter(one.nem.lacerta.shared.ui.R.color.colorOnBackground); holder.icon.setColorFilter(one.nem.lacerta.shared.ui.R.color.colorOnSurface);
holder.title.setText(listItem.getTitle()); holder.title.setText(listItem.getTitle());
holder.description.setText(listItem.getDescription()); holder.description.setText(listItem.getDescription());
} }