title: Setting margins for buttons using drawable in android
body: <p>I'm developing an android application in eclipse. I have a set of buttons and I want to insert some space between them. I'm setting the background of these buttons using an xml file(background.xml) in the drawables. For inserting spaces I'm using the following lines of code for all the buttons seperatley in the main xml file.</p>
  
  <pre><code>    android:layout_marginLeft = "10dip"
      android:layout_marginRight = "10dip"
      android:layout_marginTop = "10dip"
      android:layout_marginBottom = "10dip"
  </code></pre>
  
  <p>My question is,
        Is there a way to set the margins by modifying the background.xml file. Otherwise I have to edit all the buttons whenever I modify the margins.
   Thanks in advance.</p>