title: android: how do I add padding to a LinearLayout inside a FrameLayout
body: <p>I have a FrameLayout with many children. One of the children is a LinearLayout. I want the width of the LinearLayout to <code>match_parent</code> but about 90% so; which means I want to add some sort of <code>paddingLeft/Right</code> or <code>margingLeft/Right</code>. But when I add the padding or margin, it is not applied in the Graphical Layout. How do I do this correctly?</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/blue" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="center_horizontal"
          android:background="@color/red"
          android:marginLeft="20dp"
          android:marginRight="20dp"
          android:orientation="vertical" &gt;
  ....
  </code></pre>