1

I am unable to get color name from hexadecimal code of color or RGB. I know that the combination of color is vast 255*255*255. how can i show the color name by RGB or hexadecimal.

I tried with threshold but unable to show more color name please guide me or share any source code for java or android.

Thanks

6
  • Sorry,You can't get color name from hexadecimal or RGB code. Commented Jan 10, 2017 at 13:08
  • 2
    why guys are you down vote this question? if you dont understand please dont downvote . if you like the up vote so it can be useful to other developer Commented Jan 10, 2017 at 13:09
  • Bro,Once check guide line of StackOverFlow because some time down by them as well. Commented Jan 10, 2017 at 13:11
  • If you mean a name like "white', 'red'- you can't. There isn't really a strict definition, and it varies by culture. For example, some African cultures view blue and green as the same color, while having names for many things we'd lump together as yellow. Commented Jan 10, 2017 at 13:17
  • yes thats why i am asking generalize the more colors Commented Jan 10, 2017 at 13:19

1 Answer 1

1

You can give hexadecimal color using parseColor method Color class.

Try Color class method:

public static int parseColor (String colorString) 

Exmple :

textView.TextColor = Color.parseColor("#FF0000"); 
Sign up to request clarification or add additional context in comments.

3 Comments

I am getting cannot resolve symbol 'TextColor' please help
please assume that hex code is static so textview.TextColor will work?
please clarify the textview.TextColor. there is no variable with textview

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.