Snow/Rain fall effect on android - android

I want to achieve the snowfall effect similar to that google+ did on christmas, how should I proceed?
Do I need to use a canvas ?

Either use a canvas or a created animation-sequence.
Either way, overlay the view over the entire layout, and then start it.

Related

Is there any way to draw something on top of the root layout in Android?

Is there any way to draw something on the top of my application without extending or rearranging the already existing layout?
Maybe there is a trick i don't know with the Window
Think of it like Samsung's Galaxy Note Pen drawing that allows you to draw on top of existing application
I'm agnostic of the underlying layout. Also i don't want to distort it.
I know that probably there is not so please don't answer that there is not if you are not absolutely certain about it.
It looks like you need to use Canvas and/or Drawables. Look here:
http://developer.android.com/guide/topics/graphics/2d-graphics.html

Android Wallpaper Animation

I won't create wallpaper-application but have one problem.
Please tell me how add ImageView or another element in android wallpaper-application to create frame animation?
I can't say for sure that live wallpapers can't use activities, but If you want to have an animation, you can always draw your objects on a Canvas or using OpenGL. For detailed example, see this:
http://www.pushing-pixels.org/2010/02/01/live-wallpapers-with-android-sdk-2-1.html

Draw a Circle With Reverse Filling in Android

Not sure how to do this, or what the right terms are for describing this, but here goes:
I want to make a closing circle animation in my android app, much like the end of this video. I'm guessing what I need to do is somehow draw a black circle but instead of filling the inside of the circle fill the outside. How exactly would I do that, given the tools I have with Android's Canvas class?
Have you tried using clipPath to achieve this?
I was working on the same kind of thing and achieved it by using clipPath of canvas.

Creating a background image that moves from right to left in a live wallpaper

I have a background image that I would like to simply scroll (while looping) right to left. What is the best way to go about doing this? Will I need to use an external library? Are there certain methods built into android already to accomplish this? Is all this accomplished in the doDraw() method?
Eventually I would like the canvas to also draw a stationary Bitmap ontop of that. I think that will be easy if I just use the canvas.drawBitmap() function.
Easy example including X offset
http://android10.org/index.php/articlesuserinterface/256-live-wallpaper-example
and canvas

Android Canvas layout

I was using XML to create layouts for my application but recently I found that layouts can also be created with the help of canvas using surface View so I wanted to know whether it is advisable to create a layout with the help of canvas or not?
You can use Canvas to draw things on it, like lines, circle, text and bitmaps. However you can not add Widgets to it.
So yes, you could use Canvas to create Ui, but you would have to do everything from scratch, basically reimplement needed Widgets. This is what games usually do, but its impractical for "normal" projects, especially if you need complex Widgets like ListView.

Categories

Resources