Assuming that the current android's activity is set to:
android:screenOrientation="sensorPortrait"
Is there any way to change the orientation only for buttons? So that the other childs stay in the same orientation, as stated in android manifest.
What I'm asking is related with a streching camera preview. As long as the android:screenOrientation is set to some value like landscape or portrait, then the switching to different orientations doesn't really affect the camera preview, the ratio and size is perfect. But when it comes to just remove this screenOrientation part in order to make the buttons rotate with the phone, so that they follow changing orientation....the landscape preview gets stretched like x2.5 time, making the preview look bad.
For all whom might look for the answer, concerning stated question, there are smart way to achieve this, just follow these topic above
Rotate an ImageButton on orientation change
How to rotate views on orientation change without recreating layout?