1

I've set android:screenOrientation="portrait" to my activity.

My activity have 2 listview.

i need to set one list view in portrait

and another one list view in landscape.

enter image description here

how to set orientation two list view.

how to achieve this?

RVG
  • 3,538
  • 4
  • 37
  • 64

3 Answers3

0

You cannot do that with built in ListView control.

I can suggest alternative, which is called TwoWayGridView: https://github.com/jess-anders/two-way-gridview

There are probably many projects like this.

MaciejGórski
  • 22,187
  • 7
  • 70
  • 94
0

It's impossible. You should use this plugin: https://stackoverflow.com/a/16589629/2075875 (I mean there is rotate function, but it doesn't work properly - it doesn't fit into screen and is supported only in new devices.)

Community
  • 1
  • 1
Malachiasz
  • 7,126
  • 2
  • 35
  • 49
0

You can look for horizontal-listview with a custom TextView that's rotated in -90 degree

http://www.androiddevelopersolution.com/2012/11/horizontal-listview-in-android-example.html

Pramod
  • 1,123
  • 2
  • 12
  • 33