Ugh. I coded this up earlier and it worked, but I left the code on my
other computer, so now I'm doing it again and it isn't working, but I
can't believe how ridiculously simple it is. What could possibly be
wrong?
I adapted the following from the DrawPoints.java example:
...From a typical Activity...
@Override
protected void onDraw(Canvas canvas) {
...Create a float array of points named 'points'...
...then...
Paint paint = mPaint;
paint.setColor(Color.RED);
paint.setStrokeWidth(8);
paint.setStrokeCap(Paint.Cap.ROUND);
canvas.drawPoints(points, paint);
}
The points are drawn square. How can this possibly fail? I'm missing
something royally silly aren't I?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---