Skip to first unread message

Richard Nero

unread,
Oct 14, 2014, 7:41:25 PM10/14/14
to mitappinv...@googlegroups.com
How can I get one Canvas/horizontal arrangement displayed on top of other? ( I dont know technical term for this)

See attached image as an example. 

Thank you for help.
example.jpg

SteveJG

unread,
Oct 14, 2014, 8:34:00 PM10/14/14
to mitappinv...@googlegroups.com
You can not put one control over another if they are both visible.   Two exceptions : you can put an image in a button and you can put a sprite (an image) on a Canvas.  A way to simulate what you show in your posted image is to put images on a Canvas (with text or images on each sprite object) and overlap the two sprites (I think you can overlap the sprites but not sure).    Does that work for you?     If not, consider Eclipse or Android Studio.

Regards,
Steve

Richard Nero

unread,
Oct 14, 2014, 11:06:11 PM10/14/14
to mitappinv...@googlegroups.com
Thanks .. I did  with two clocks

background layout  --> visible.false
 and canvas.visible.true. 

may be if background was canvas then that canvas can be saved as image and put as background image to canvas 2. 

Thank you

SteveJG

unread,
Oct 15, 2014, 8:53:41 AM10/15/14
to
Interesting solution Richard, thanks for showing how you solved your display issue.

Taifun's explanation of how to save a canvas as an image is here:   http://puravidaapps.com/snippets.php#2canvassave.

You asked about if background is a canvas then that canvas  can be saved as image.   Yes.      and put that as abackground image to canvas 2. It works, the image replaces whatever was there.  The first cod block with Button 8 does that.  More exciting is saving two images as sprites, then you can do this:




...a simple animation.  What the screen shows is three Canvas controls.  The bottom one is a Canvas with two sprites..the button allows movement of the cloud image over the android.

Regards,
Steve

Richard Nero

unread,
Oct 15, 2014, 9:06:10 PM10/15/14
to mitappinv...@googlegroups.com
Thanks Stephen. Will give a shot on next screen.   
Reply all
Reply to author
Forward
0 new messages