everyone! My question is inverted version of How to lock fragment orientation without locking activity orientation? , but nothing from there have worked for me.
The point is, that I have a camera app, where camera preview lays in activity, and an overlay with settings and other stuff - in fragment, like this:
<RelativeLayout
android:id="@+id/main_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:weightSum="1">
<FrameLayout
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
<FrameLayout
android:id="@+id/overlayContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</RelativeLayout>
So, I want to lock camera preview orientation, while keeping overlay orientation unlocked (as in camera apps in samsung, or sony smartphones).
Thanks in advance.