Put Pixels on Titanium Mobile
Hi everyone.
I'm learning to use Titanium Mobile (Android app).
I'm stuck right now because I have my window, and I would like to put pixels (to draw lines, shapes, etc…).
Sure, I could create views of 1x1 px, but i don't think that's the proper solution.
Does anyone have an idea ?
Thanks :) .
3 Answers
-
I am not sur if Titanium has API to do direct screen drawing.
Anyone?
-
Hi. Somewhere in this forum I read, that there might be a CanvasView some day…
But in the meantime you could try a workaround using a WebView containing a HTML5 <canvas>-element on which you can draw.
I used that for drawing graphs in an app.
[https://developer.mozilla.org/en/Canvas_tutorial] -
Thanks for your answers.
I will use a WebView, and maybe with jQuery, I'll see..
Did you use any JS Library to draws your charts ?It's too bad that there isn't any way to put pixels, using a WebView is quite heavy :< !