0

I'm currently developing an app that will show a physical representation of an ID card, i have this view as an XML file on both landscape and portrait mode. My question is: is it possible to have the phone in Portrait mode and use only this layout as an include in landscape mode? The goal is to have a nice elegant ID Card shown on the screen like the picture here. Thank you.As seen in the picture here

Edit: so in other words I need to use a LANDSCAPE resource while being on PORTRAIT mode.

1 Answers1

0

You can add android:screenOrientation="portrait" to your Activity in the manifest and this will lock the Activity in portrait mode.

user14678216
  • 2,886
  • 2
  • 16
  • 37