Preventing an activity from occupying the full width of the screen
<p>I have a dialog-style android activity that gets displayed on top of the main activity in my android app. I don't want it to take up the full width of the screen. How can I specify that it leaves a margin of x dp on either side of it?</p>
