Hello!

Can eat already somewhere an example of a subject? Be it a blog, or a chapter in a book.
Poke me, please nose :)

Thank!

  • one
    create a folder with leyautami named at the end of -land and you will be happy - Gorets

3 answers 3

A cho poke it? Detect the turn of the layout, and launch the desired Activity in this place.

Or am I missing something?

  • 2
    These are crutches and Hindu approach. - andrewshka
  • one
    @NeoTvidoz as a question was asked, so you answered. - rasmisha

I found the answer myself. In order to automatically change the Activity when changing orientation, you need to create in the project folder "res / layout-land" an xml-file with the same name as in vertical orientation. Thus, in the folder "res / layout" - portrait orientation, and in the folder "res / layout-land" - landscape.

  • yourself? and a comment by @Gorets? - rasmisha
  • one
    @rasmisha, so maybe he found it himself on the answer page?))) like you know the old joke, find X. <- here he is))) - Gorets
  • I saw the comment after I posted the answer :) - andrewshka
  • one
    @NeoTvidoz is a standard way: 1 activation works with several layouts, but not different activations - to different orientations. The original question was incorrect. - Barmaley
  • one
    @Barmaley here I am also. The author himself froze, and with crutches he called the answer to the question posed - rasmisha