title: Android @style resource is not resolved
body: <p>I am using Android Studio for an android app development.
  I have a style resource inside ..../src/main/res/values - </p>
  
  <pre><code>colors.xml
  dimens.xml
  strings.xml
  styles.xml
  </code></pre>
  
  <p>I have a couple of styles defined in the Styles.xml file and the studio throws error saying that the style cannot be resolved where it resolves and applies to one LinearLayout in the same activity code and from the same styles.xml file.
  I am trying to apply another style to the Button inside that LinearLayout that works.</p>
  
  <p>In the styles - </p>
  
  <pre><code>&lt;style name="LoginButton"&gt;
          &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
          &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
          &lt;item name="android:layout_marginTop"&gt;10dp&lt;/item&gt;
          &lt;item name="android:layout_marginLeft"&gt;25dp&lt;/item&gt;
          &lt;item name="android:layout_marginRight"&gt;25dp&lt;/item&gt;
          &lt;item name="android:background"&gt;@color/navy_blue&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/white&lt;/item&gt;
          &lt;item name="android:text"&gt;@string/action_sign_in&lt;/item&gt;
          &lt;item name="android:paddingLeft"&gt;50dp&lt;/item&gt;
          &lt;item name="android:paddingRight"&gt;50dp&lt;/item&gt;
          &lt;item name="android:layout_gravity"&gt;center&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>And on the activity_login.xml -</p>
  
  <pre><code>&lt;Button style="@style/LoginButton"
                      android:id="@+id/sign_in_button"
              /&gt;
  </code></pre>
  
  <p>The error android studio shows -</p>
  
  <pre><code>Rendering Problems NOTE: One or more layouts are missing the layout_width or layout_height attributes. These are required in most layouts. &lt;Button&gt; does not set the required layout_width attribute:     Set to wrap_content, Set to match_parent &lt;Button&gt; does not set the required layout_height attribute:     Set to wrap_content, Set to match_parent  Or: Automatically add all missing attributes   Couldn't resolve resource @style/LoginButton (6 similar errors not shown) 
  </code></pre>