title: Android:Layout move upwards & about 20dp area from the top hides behind the status bar
body: <p>I am using this <a href="http://mobile.tutsplus.com/tutorials/android/capture-and-crop-an-image-with-the-device-camera/" rel="nofollow noreferrer">link</a>! for cropping an image and after getting the cropped image somehow whole layout moves about 20dp upwards and hides behind the status bar (this is random behaviour i.e happens sometimes) I tried many things to fix this problem but couldn't get to the solution, mainly because I dont know what is causing the problem.<br><br>
  This is a device specific problem, occurs occasionally in galaxy s and htc desire but frequently on samsung Ace. I tested app on samsung note and htc desire HD it works fine no such problem in these devices. 
  <br><br>
  There is one more thing I should mention here that is: when layout hides under the status bar if I popup the keyboard by clicking on textfield layout gets back to normal i.e hidden area gets visible again. <br><br>I cannot attach the image but found similar question <a href="https://stackoverflow.com/questions/13689199/android-status-bar-hides-part-of-view-sometimes">Android - Status bar hides part of view sometimes</a> exactly this is the behaviour of my layout.<br></p>
  
  <p><strong>Note:Recently i found out that camera activity is causing the layout to move upwards. To verify this start camera in samsung Galaxy Ace and just press back and note the layout movement in icons of home screen.</strong></p>