我正在尝试绘制 AndroidPlot 背景的渐变,我需要的只是一个 Paint 对象。
所以我会使用这段代码:
int[] co = new int[]{颜色.红色,颜色.黄色,颜色.绿色,颜色.黄色,颜色.红色};
float[] coP = new float[]{0.1f,0.1f,0.6f,0.1f,0.1f};
>Paint pa = new Paint();
>pa.setAlpha(200);
>pa.setShader(new LinearGradient(0,0,250,graphv.getHeight(),co,coP,Shader.TileMode.REPEAT));
Run Code Online (Sandbox Code Playgroud)
但背景只有一种颜色:红色。
我不知道为什么,或者如何解决它。
你有什么想法?
这是我的代码:
<form action=\"index.php?m=".$mm."&y=".$y."\">
<input type=\"submit\" value=\"<\">
</form>
Run Code Online (Sandbox Code Playgroud)
变量 $mm 和 $y 已初始化并具有值。但我只会被重定向到:
索引.php?
我做错了什么?