Android get color as string value

前端 未结 11 1494
青春惊慌失措
青春惊慌失措 2021-01-30 19:28

If i defined a color in resources


    #123456

it\'s possible

11条回答
  •  遇见更好的自我
    2021-01-30 19:38

    I don't think there is standard functionality for that. You can however turn the return in value from getColor() to hex and turn the hex value to string.

    hex 123456 = int 1193046;

提交回复
热议问题