Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color of priority cardview does not set #1

Open
Mpixol opened this issue Jul 27, 2020 · 2 comments
Open

Color of priority cardview does not set #1

Mpixol opened this issue Jul 27, 2020 · 2 comments

Comments

@Mpixol
Copy link

Mpixol commented Jul 27, 2020

I am following your tutorial course and everything works perfectly fine. At the moment I finished the binding.
Since the first moment the only thing that did not work was the color of the priority cardview in the list fragment.
In the other fragments the color for priority works fine.
I analized the database and the priority is ok.
Could you help me?
Thanks Michel

@Mpixol
Copy link
Author

Mpixol commented Aug 22, 2020

I solved this problem changing theo size of the cardview

@initialgr
Copy link

same me to, but i changed the card view to ImageView using drawable stuff, like made own drawable.xml and made one by one the drawable with name red,yellow, and green, and change it to shape with solid color and with corner, so the imageview show as pure circle with color by showing the drawable i made ... and in the ListAdapter u just change the code to "Priority.MEDIUM -> holder.itemView.priority_indicator.setImageDrawable(
ContextCompat.getDrawable(
holder.itemView.context,
R.drawable.yellow"))

pplaquette added a commit to TrildaDevCenter-Udemy/To-Do-App-Kotlin that referenced this issue Dec 3, 2024
does not work yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants