title: Android Theme style not applying for Button
body: <p>On my application style not applying, It shows like this,</p>
  <p><a href="https://i.stack.imgur.com/yUYwO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yUYwO.png" alt="enter image description here" /></a></p>
  <p>Here is the code I am using,</p>
  <p>-----AndroidManifest.xml-----</p>
  <pre><code>&lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme&quot;&gt;
  </code></pre>
  <p>----themes.xml-----</p>
  <pre><code>&lt;resources xmlns:tools=&quot;http://schemas.android.com/tools&quot;&gt;
  
      &lt;!-- Base application theme. --&gt;
      &lt;style name=&quot;AppTheme&quot; parent=&quot;Theme.AppCompat.Light.NoActionBar&quot;&gt;
          &lt;!-- Primary brand color. --&gt;
          &lt;item name=&quot;colorPrimary&quot;&gt;@color/white&lt;/item&gt;
          &lt;item name=&quot;colorPrimaryVariant&quot;&gt;@color/white&lt;/item&gt;
          &lt;item name=&quot;colorOnPrimary&quot;&gt;@color/text_gray&lt;/item&gt;
          &lt;!-- Secondary brand color. --&gt;
          &lt;item name=&quot;colorSecondary&quot;&gt;@color/white&lt;/item&gt;
          &lt;item name=&quot;colorSecondaryVariant&quot;&gt;@color/white&lt;/item&gt;
          &lt;item name=&quot;colorOnSecondary&quot;&gt;@color/text_gray&lt;/item&gt;
  
          &lt;item name=&quot;android:textViewStyle&quot;&gt;@style/Regular_TextView&lt;/item&gt;
          &lt;item name=&quot;buttonStyle&quot;&gt;@style/Rounded_Gray_Button&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name=&quot;Rounded_Gray_Button&quot; parent=&quot;android:Widget.Button&quot;&gt;
          &lt;item name=&quot;android:gravity&quot;&gt;center&lt;/item&gt;
          &lt;item name=&quot;android:minWidth&quot;&gt;100dp&lt;/item&gt;
          &lt;item name=&quot;minHeight&quot;&gt;40dp&lt;/item&gt;
          &lt;item name=&quot;font&quot;&gt;@font/sf_ui_display_bold&lt;/item&gt;
          &lt;item name=&quot;android:textSize&quot;&gt;16dp&lt;/item&gt;
          &lt;item name=&quot;background&quot;&gt;@drawable/rounded_dark_gray_bg&lt;/item&gt;
          &lt;item name=&quot;android:textColor&quot;&gt;@color/white&lt;/item&gt;
      &lt;/style&gt;
  
  
      &lt;style name=&quot;Rounded_Gray_Stroke_Button&quot; parent=&quot;android:Widget.Button&quot;&gt;
          &lt;item name=&quot;android:gravity&quot;&gt;center&lt;/item&gt;
          &lt;item name=&quot;android:minWidth&quot;&gt;100dp&lt;/item&gt;
          &lt;item name=&quot;minHeight&quot;&gt;40dp&lt;/item&gt;
          &lt;item name=&quot;font&quot;&gt;@font/sf_ui_display_bold&lt;/item&gt;
          &lt;item name=&quot;android:textSize&quot;&gt;16dp&lt;/item&gt;
          &lt;item name=&quot;background&quot;&gt;@drawable/rounded_dark_gray_stroke&lt;/item&gt;
          &lt;item name=&quot;android:textColor&quot;&gt;@color/dark_gray&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  <p>Button Backgrounds</p>
  <p>----rounded_dark_gray_bg.xml----</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
      &lt;item&gt;
          &lt;shape android:shape=&quot;rectangle&quot;&gt;
              &lt;stroke
                  android:width=&quot;1dp&quot;
                  android:color=&quot;@color/dark_gray&quot; /&gt;
              &lt;solid android:color=&quot;@color/dark_gray&quot; /&gt;
              &lt;corners android:radius=&quot;6dp&quot; /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  <p>---rounded_dark_gray_stroke.xml----</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;layer-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
      &lt;item&gt;
          &lt;shape android:shape=&quot;rectangle&quot;&gt;
              &lt;stroke
                  android:width=&quot;1dp&quot;
                  android:color=&quot;@color/dark_gray&quot; /&gt;
              &lt;solid android:color=&quot;@color/white&quot; /&gt;
              &lt;corners android:radius=&quot;6dp&quot; /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  <p>I am applying the above button style on the below xml file,</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
         &lt;LinearLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_alignParentBottom=&quot;true&quot;
              android:orientation=&quot;horizontal&quot;
              android:gravity=&quot;center&quot;
              android:padding=&quot;10dp&quot;&gt;
  
              &lt;Button
                  android:id=&quot;@+id/btnSignin&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;match_parent&quot;
                  android:theme=&quot;@style/Rounded_Gray_Button&quot;
                  android:text=&quot;@string/Sign_in&quot;/&gt;
  
              &lt;Button
                  android:id=&quot;@+id/btnRegister&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;match_parent&quot;
                  android:theme=&quot;@style/Rounded_Gray_Stroke_Button&quot;
                  android:text=&quot;@string/Register&quot;/&gt;
  
          &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>