0

Is it possible to rotate the virtual buttons (soft keys) programmatically?

I understand that if I enable android:screenOrientation options I can get these buttons to auto-rotate. But sometimes my activity is too heavy to rotate everything. So I am seeking solutions to keep some screen items intact while rotating the virtual buttons to the correct display orientation.

I couldn't find any documentation and/or mention of related APIs/hacks. Is this a forbidden realm?

Rudi Visser
  • 21,350
  • 5
  • 71
  • 97
Eric Chen
  • 3,562
  • 7
  • 39
  • 58

1 Answers1

0

Android detects orientation/nav bar positioning in the PhoneWindowManager which is part of the framework code. So unfortunately it's not possible to do this from an app.

al.
  • 212
  • 1
  • 2
  • 6