This class contains most of the drawing routines:
http://developer.android.com/reference/android/graphics/Canvas.html
On Saturday, August 11, 2012 6:48:33 PM UTC-5, antonio brandao wrote:
>
> Hello, I come to ask only for a few tips or merely a bit of guidance on my
> development for Android.
>
> I'm pretty skilled in ActionScript but completely new to Java.
>
> In this thread I ask how would I do some things in Java, providing the
> equivalent in AS.
>
> I intend to draw shapes on screen and use them as UI - as a deeper layer
> within the Android XML UI.
>
> In ActionScript, I can create Sprites or DisplayObjects, edit their
> "graphics" property like
>
> // create a DisplayObject instance
> *_someDisplayObject* = new DisplayObject();
>
> // create a white square inside it
> *_someDisplayObject*.graphics.beginFill(0xFFFFFF);
> *_someDisplayObject*.graphics.drawRect(0,0,100,100);
> *_someDisplayObject*.graphics.endFill();
>
> // place it dinamically in a position relative to the Stage (canvas)
> *_someDisplayObject*.x. = *Stage*.stageWidth / 2;
>
> ------------------
>
> Also, are there Tweening libraries like TweenLite or Tweener ? Those which
> allows to create animation with one like of code like:
>
> // move display object to position X = 300 with half transparency, in half
> second
> Tweener.addTween(*_someDisplayObject*, { x:300, alpha:0.5, time:0.5,
> transition"EaseOutSine" } );
>
> ------------------
>
> Can anyone give a clue, on what am I looking at, to try the same in Java
> for Android ?
>
> Just an advice letting me know where to start would be greatly
> appreciated.
>
> Thank you !
>
--
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