How to make a gradient color? My code doesn't work...
Using java Syntax Highlighting
- int color[] = new int[2];
- color[0] = R.color.green;
- color[1] = R.color.yellow;
- GradientDrawable grad = new GradientDrawable(Orientation.TOP_BOTTOM,color);
- grad.setSize(100,200);
- grad.setColor(R.color.green);
- grad.setBounds(0, 0, 100, 200);
- grad.setAlpha(255);
- grad.draw(canvas);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
Regards,
sasuke





