当我尝试使用 RGB 值创建颜色时,我收到一条消息说“Color() in Color cannot be applied to:”,然后它说“Expected parameter:”和“Actual Arguments:”
import android.graphics.Color;
Color myColor = new Color (0,0,0);
当我尝试运行该程序时,它说:
error: constructor Color in class Color cannot be applied to given types;
required: no arguments
found: int,int,int
reason: actual and formal argument lists differ in length
撒科打诨
幕布斯7119047
随时随地看视频慕课网APP
相关分类