MHmansouri
MHmansouri

Reputation: 73

Android | can create a dot color ball in a list?

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?

enter image description here

Upvotes: 0

Views: 113

Answers (1)

Kamal Nayan
Kamal Nayan

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

Related Questions