How do I make my android App portrait and landscape?

How do I make my android App portrait and landscape?
Answer
Android can be restricted to not switch the screen to landscape when rotated.
Open the AndroidManifest.
xml file
, in the activity declaration element add the attribute screenOrientation and set it to portrait.
 

Tìm kiếm

Back
Top