How to set paint.setColor(R.color.white)

后端 未结 5 400
盖世英雄少女心
盖世英雄少女心 2020-12-29 23:09

I have a custom View that uses Paint and Canvas to draw objects. My question is how to set:

int color = R.color.white;
paint.setColor(color);
5条回答
提交回复
热议问题