0

I have seen different cases and links over the stackoverflow and others , but unable to find the answer according to my needs.

I have simple activity , on which I am drawing on canvas, but in front I have placed an Image and on there I have different color.

Now I was looking for the color, I was trying to check on touch of that imageview that what color is touched.

So my question is that , can I get the name of color whcih is under touch by the user. For example if he touch the Black ,then I print the toast that you have touched the black color.??

please help me in this , I want to get the names of color.

Coas Mckey
  • 701
  • 1
  • 13
  • 39

1 Answers1

2

You need to break the task into multiple subtasks.

  1. Determining the color of the pixel at the point pressed.
  2. A comparison of the pixel to the table names. (like this or this)
Community
  • 1
  • 1
user2413972
  • 1,355
  • 2
  • 9
  • 25