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

Using rotation

Modern mobile devices are basically meant to be rotated. There is actually two concrete and fairly different ways to handle it. Indeed, we can rotate the graphical interface of our activities because the user has rotated his/her phone, or we can do it programmatically to fit our needs. Thus, we will see both ways of handling rotation.

Getting ready

Once again, we will reuse the code from the AutoCompletTextView project.

How to do it...

  1. Layout oriented:

    If you are only using built-in elements, they will all have a default look and feel for the landscape mode. Therefore, if you rotate the example used in the previous AutoCompleteTextView example, you will see something looking like the following screenshot:

    Tip

    If you only have access to ...

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