How to imitate a change in orientation of my Android device?

I work in Eclipse using the Android SDK and Android ADT plugin, and I have some features based on the orientation of the phone that I want to test in the emulator (more specifically, I want to check my solution for this problem ).

How to emulate a change in orientation?

+6
source share
1 answer

If you mean switching at runtime, then:

. Switch to the previous layout orientation (for example, portrait, landscape): KEYPAD_7, Ctrl-F11. Switch to the following layout orientation (e.g. portrait, landscape): KEYPAD_9, Ctrl-F12

This is what you need?

+8
source

Source: https://habr.com/ru/post/902658/


All Articles