Android- Image shape changed on screen rotation
<p>I created an app that uses a 9.png file as its background. The problem is, when I rotate the screen, the background shape changes weirdly.   </p>

<p>I am attaching the screenshot:  </p>

<p><img src="http://i.stack.imgur.com/J0SfY.png" alt="Application in normal mode"></p>

<p><img src="http://i.stack.imgur.com/tbjFS.png" alt="After Screen Rotation"></p>

<p>As you can see, the background of the layout containing the name and image takes a weird shape. </p>

<p>What can be the possible reason? And how can I make it work?</p>

<p>I have checked that the image is perfectly smooth and in perfect shape.</p>

<p>EDIT:
I am talking about the following background that is not stretching properly(The leftmost part is smaller in height than the rightmost part):
<img src="http://i.stack.imgur.com/tHU4k.png" alt="The right portion is larger than the left portion"></p>
