How could I make the SurfaceView and Button have a different orientation in a Activity
<p>I hava a simple program about video recording .
I use the surfaceView to show the preview screen.
and I also want to put some buttons on the screen.</p>

<p>I put all the component mentioned above into a XML file which is "ipcam.xml" </p>

<p>I use MediaRecorder , SurfaceView , SurfaceHolder to complete this program
because the preview screen does not orientate correctly when I rotate my phone.
so I use "setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);"
but , the button in the program is always in LANDSCAPE direction . 
it will not auto change direction when I rotate my phone , but the preview is ok!!</p>

<p>so is there anyway to solve this problem.</p>

<p>Thank you all very much in advance.</p>

<p>you can see this picture , I put my phone in vertical direction
the preview screen seems OK 
 but the button is in horizontal direction , i don't want it.</p>

<p><a href="https://newslab.csie.ntu.edu.tw/~poc7667/123.png" rel="nofollow">https://newslab.csie.ntu.edu.tw/~poc7667/123.png</a></p>
