Change the width of the layout and align to the right side while clicking the button
<p>I have to develop an Android application in that when I click the button in the map view, the view should shrinks to a particular width and should align to the right side. But when I click the button, the width of the mapview is reducing but it is left aligning. I tried a lot to align it to left side, but I couldn’t do it. Any idea plz. The figures are attached.<img src="http://i.stack.imgur.com/b6R5T.png" alt="enter image description here"></p>

<p><img src="http://i.stack.imgur.com/6EqNl.png" alt="enter image description here"></p>
