animation

stupid question regarding animationlistener and intent

What's best practice for structuring an activity, which should begin by displaying an animated image, and then move to another "activity" by intent when the animation is complete? I understand some of the basic principles, but I am getting lost on structuring the flow here. public class Scanimation extends Activity { //create nam...

Looking for some good text animation algorithms (commercial or open source)

I have a need to animate some text and don't have the time to come up with polished animation routines. I need some quality algorithms that provide source, because I will need to implement on multiple platforms. An example of what I'm looking for is the following Flash authoring product, but with source code, and preferably in C/C++, Jav...

Android removeview error when animating

private void kartyafeleanim(String idx1, String idx2) { Animation anim1=AnimationUtils.loadAnimation(mycontext, R.anim.scalable_anim); Animation anim2=AnimationUtils.loadAnimation(mycontext, R.anim.scalable_anim); try { for (int i=0; i<6; i++) { LinearLayout LL = (LinearLayout) myLinearLayout.getChild...

Image with animation in iphone

I want to use the image in view which will move like marquee as in HTML,from one end to another end of view. Could anyone provide me with that code how to do that. Thanks in advance n please help me out with this. ...

Concept for 2D realtime character animation

Hi there, I'm looking for a good concept for realtime character animation in a 2D environment. There several ways, from prepare all the animation stuff offline or do the animation with graphic snippets in realtime. Do you have a good concept for me? Thank you ...

Two property changes in the same animation block have different durations. Why?

In the following UIView animation block, I do a CGAffineTransformMakeScale and a CGAffineTransformMakeRotation, and though the duration is set to 1.0f, the scale goes really fast and the rotation goes in 1 second like it should. It must be my lack of understanding about how AffineTransforms are applied but I can't figure it out. What g...

Can't undo a scale transform without undoing a rotation transform...

Here's a follow up to a previous question. My code below animates a square by scaling it and rotating it. It does this by making a rotation transform and adding a scale transform to it. That works fine. When it's done, it calls throbReset. I used to have throbReset just set self's transform to a CGAffineTransformMakeScale and that w...

Android Activity.setContentView(), smooth transition?

I'm developing my first Android game and I'm having a bit of difficulty making the UI as smooth as I would like. I've spent a couple of hours googling around with no luck, I'm probably just searching for the wrong thing. I have two different XML layout resources where each layout contains just one SurfaceView subclass. When I call activ...

WPF animation sometimes doesn't run

I have some pretty simple code that attempts to slide a custom progress bar over. Here is the XAML: <!-- Progress display --> <uControl:ProgressDisplayPie x:Name="soakProgressDisp" Canvas.Left="357" Canvas.Top="29" ProgressValue="0" Height="198" /> In response to a button click, the progress bar slides over: private void sau...

jQuery class fade on input blur/active

Hi guys I have made an input with an image as background. When the input is active the input changes image. I want it to animate/fade between theese states. The way it works now: Class idleInput is added to the input onload. When input is active activeInput class is added instead. How can I animate this? <script type="text/javascript...

Custom Animation Object for Transition in Android?

I want to override the default activity transition in Android with something a bit fancier. What I want to do can't be done with the XML set that one would typically use, so I can't use overridePendingTransition because it only accepts integer references to XML-based animation resources. What I'd like to do instead is create my own obje...

Horizontal nav menu with jQuery css sprite rollover

I was thinking of having a unique setup for my left navigation on my Mario themed website: OK, so for each link, I would have the text like "Action Figures" for example in a certain font. Give a little room, and then insert a sprite of a certain Mario character, Mario would go next to "Action Figures", Luigi next to "Board Games", so o...

Why is drawing bitmaps is very slow on some android 2.2 phones?

I have a simple card game where the user can drag and drop cards around the screen. On some of the 2.2 android phones like the Droid and EVO the card drawing is very slow. This is strange because it happens on some of the faster phones. However it's not all phones I test on the Droid and Droid X and the program runs great also runs good ...

Slide Down Animation with Jquery

Hello, I'm looking to have a slide down animation (popular on a lot of forms these days) with jquery. I have text injecting into a div. The text is fetched from a database. success: function(text, textS, xhr){ if(xhr.status){ if (text == "") { $("#resultsDiv").html(" "); } else { $("#resultsDiv").html(t...

the extjs effection(slidein slideout)

Hi: From the api I found extjs provide some basic animation,for exmaple the fadeIn fadeOut and etc. However when I use them, I meet some problems. I am confusing about the component of its show and hidden. The animation is called to the Element,for exapmle, form.getEl.fadeIn(...); But for a component,it has a attribute of hidden, ...

How to use isAnimating in an iPhone app.

I want to have a custom loading menu made from a series of stills, that loops 3 times and then reveals a picture. Currently the picture is visible from the start. I want to use isAnimating to find out when the loading animation has stopped, and either change myImage.hidden off, or have the UIImageView initially containing a white image, ...

Apple Ipad/Iphone Photos App - Delete Photo Animation

Hi, I am looking to create the animation like the one used in the photo app for ipad/iphone for deleting a photo. The photo needs to move to the recycle bin. is this a standard animation? or do we need lots of coding? ...

JQuery Stack of Cards

Hi Guys, I have a stack of cards. They are stacked so each one has about a centimetre at the bottom visible. What I want, is when a card is clicked it moves to the right, then gets sorted to the top and moves to the left back onto the pile. I then wish to trigger a page change (to the page that's represented by the card). How would I d...

Android animation startOffset broken or buggy?

Hi, I've taken some animation xml straight from the android docs, and as far as I can see, doesn't work on either my 2.1 update 1 emulator or my 2.1 update 1 Galaxy S device. Specifically, I'm trying to create an animation to pulsate a view (i.e. make it smaller then larger in one animation) This is the very simple markup: <?xml...

Android TranslateAnimation with Button View problem

Hi guys, I'm trying to have fun with android animations. This is the crime scene: I've a relative layout with the following components: On the background we placed a ListView 200dip wide. Hover the ListView we added: one Button 40dip wide, 2nd ListView 80dip wide and a 3rd ListView 80dip wide. As first thing I would like to show the L...