title: Android selector showing error
body: <p>In my android xml file I have one <strong>edittext</strong> .I was trying to customize that <strong>edittext</strong> the xml is looks like :--</p>
  
  <pre><code> &lt;EditText
              android:id="@+id/edi"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:ems="10"
              android:layout_marginTop="10dp"
              android:layout_gravity="center"
              android:hint="Username"
              android:background="@layout/textbox001"
              android:drawableLeft="@drawable/usernameicon"
            / &gt;
  </code></pre>
  
  <p>and in layout the <strong>textbox001</strong> is:--</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle"&gt;
  
      &lt;item android:state_pressed="true" &gt;
          &lt;shape&gt;
              &lt;gradient
                  android:startColor="#e4e4e2"
                  android:endColor="#d5d5d5"
                  android:angle="270" /&gt;
              &lt;stroke
                  android:width="0dp"
                  android:color="#282a2f" /&gt;
              &lt;corners
                  android:topLeftRadius="10dp"
          android:topRightRadius="10dp"
          android:bottomLeftRadius="0dp"
          android:bottomRightRadius="0dp" /&gt;
              &lt;padding
                  android:left="10dp"
                  android:top="10dp"
                  android:right="10dp"
                  android:bottom="10dp" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item&gt;
          &lt;shape&gt;
              &lt;gradient
          android:endColor="#e4e4e2"
          android:startColor="#d5d5d5"
          android:angle="270"
   /&gt;
              &lt;stroke
                  android:width="0dp"
                  android:color="#282a2f" /&gt;
              &lt;corners
                  android:topLeftRadius="10dp"
          android:topRightRadius="10dp"
          android:bottomLeftRadius="0dp"
          android:bottomRightRadius="0dp" /&gt;
              &lt;padding
                  android:left="10dp"
                  android:top="10dp"
                  android:right="10dp"
                  android:bottom="10dp" /&gt;
  
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>but its showing errors in selector..i.e:--</p>
  
  <pre><code>element selector does not have  required attribute android:layout_width 
  element selector does not have  required attribute android:layout_height
  </code></pre>
  
  <p>Where is the problem???how can I correct it??
  In xml graphic it is also showing that:--</p>
  
  <pre><code>The graphics preview in the layout editor may not be accurate:
  Different corner sizes are not supported in Path.addRoundRect. (Ignore for this session)
  </code></pre>