Reputation: 73
guys i want to create a list for showing colors of product and i see some ui and now i dont have any idea how can i implement this ui! i want read colors in database then apply them to a list like below and user choose what color want...i search many site and video and stack question and i cant find correct answer for this... can anyone help me to do this?
Upvotes: 0
Views: 113
Reputation: 1718
You can use cardview
and its property cornerRadius
to achieve this round shape. Now for the different color you can set the backgroundTint
of cardview with your desired color to get the expected result.
Upvotes: 2