Search code examples
androidlayoutandroid-activityviewflipper

Control orientation when using view flipper


I have three layouts with viewflipper. I want one layout to be able to change orientation but the other two to stay in portrait mode. Is this possible?


Solution

  • You can set your layouts as type linear layout so you can use the android:orientation feature for the layout. So you can do android:orientation="horizontal/vertical", android:orientation="horizontal", and android:orientation="vertical" for your different layouts.