android - required layout_attribute is missing <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;gradient android:layout_width="match_parent" android:angle="270" android:centerColor="#4ccbff" android:endColor="#24b2eb" android:startColor="#24b2eb" /&gt; &lt;corners android:radius="5dp" /&gt; &lt;/shape&gt; </code></pre> <p>The above code shows " required <code>layout_height</code> attribute is missing" on the line no <strong>4</strong> </p> <p>&amp; </p> <p>"required <code>layout_height</code> and <code>layout_width</code> attribute is missing" on the line no <strong>11</strong>.</p>