2

how can i integrate 2 different layouts for my app.

One for a vertical view and one for a horizontal view?

exp.: vertical - Linear Layout horizontal - Table Row

greetings and thx in advance!!!

maximus
  • 10,894
  • 28
  • 91
  • 124

1 Answers1

1

You could use an orientation listener if you want to do it programmatically:

http://developer.android.com/reference/android/view/OrientationListener.html

Between 0 and 45 degrees, portrait, 45 and 90 landscape, using setContentView().

Or

http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources for the xml (and probably right) way to do it.

Best regards.

pouzzler
  • 1,790
  • 1
  • 18
  • 30