Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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 :) .

— asked April 3rd 2010 by Antoine Dorni
  • android
  • line
  • mobile
  • pixel
  • put
  • titanium
  • view

3 Answers

  • I am not sur if Titanium has API to do direct screen drawing.


    — answered April 4th 2010 by Peter Lum
  • 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.

    — answered April 4th 2010 by Robert Mai
  • 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 :< !

    — answered April 4th 2010 by Antoine Dorni
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.