title: Binary XML file line #7: You must supply a layout_width attribute
body: <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" 
      android:background="@drawable/off_background"&gt;
  
  &lt;ImageView 
      android:id="@+id/bottom_layer" 
      android:src="@drawable/handle"/&gt;
  
  &lt;ImageView
      android:id="@+id/upper_layer"
      android:src="@drawable/switch_v"/&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>whenever this code is executed:</p>
  
  <pre><code>    inflater.inflate(R.layout.settings_switch, this);
  </code></pre>
  
  <p>I get this error:</p>
  
  <p><code>10-29 13:27:00.090: E/AndroidRuntime(22364): Caused by: java.lang.RuntimeException: Binary XML file line #7: You must supply a layout_width attribute.</code></p>
  
  <p>how can it be?</p>
  
  <p>I have</p>
  
  <pre><code>  android:layout_width="match_parent"
      android:layout_height="match_parent" 
  </code></pre>