1

I´m a little familiarized with android development, so I will do a magazine app, with some pages using imageviews, one requisite is the app will work in Landscape and Portrait mode, but with one diference, in Portrait will show one page, Landscape will show 2 pages. I always worked with others developers that did the layout, but this time I will do all work. The pages will change using swype method, so I think using a android view pager is an adequate method to do this: http://developer.android.com/training/animation/screen-slide.html but I need to change between a portrait and landscape view, how can I do this?

enter image description here

Hamid Shatu
  • 9,664
  • 4
  • 30
  • 41
Ricardo Cunha
  • 2,013
  • 6
  • 24
  • 42

1 Answers1

1

You can create a layout to landscape mode and other to portrait. For example you activity_main.xml layout is on folder res/layout you can create a version on res/layout-land with the same name.

for more details please read: http://developer.android.com/guide/practices/screens_support.html#qualifiers

ademar111190
  • 14,215
  • 14
  • 85
  • 114