O'Reilly logo

Xamarin Studio for Android Programming: A C# Cookbook by Mathieu Nayrolles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating animations

Users tend to be attracted by animation in applications. Animations can be the right push towards the summit of user experience. Of course, the best animations are the ones that users don't notice because they feel natural.

View animations are tied to a specific view and can perform simple transformations on the contents of the view. Because of its simplicity, this API is still useful for things such as alpha animations, rotations, and so forth.

Getting ready

Create a new solution named Animations in Xamarin Studio.

How to do it...

  1. Create an .xml file named anim.xml under the Resources folder and add the following content to it:
    <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required