title: MaterialComponents theme alert dialog buttons
body: <p>Recently I switched from support library to com.google.android.material:material:1.0.0</p>
  
  <p>But now I have a problem, in this pages there's a note <a href="https://github.com/material-components/material-components-android/blob/master/docs/getting-started.md" rel="noreferrer">https://github.com/material-components/material-components-android/blob/master/docs/getting-started.md</a></p>
  
  <blockquote>
    <p>Note: Using a Material Components theme enables a custom view inflater which replaces default components with their Material counterparts. Currently, this only replaces Button XML components with MaterialButton.</p>
  </blockquote>
  
  <p>And the theme I am using </p>
  
  <pre><code>Theme.MaterialComponents.Light.NoActionBar
  </code></pre>
  
  <p>does exactly what it says in that note, it replaces AlertDialog Buttons to MaterialButtons but the problem is that by default MaterialButtons are colored background and now the buttons looks like this: <a href="https://i.stack.imgur.com/85Pba.png" rel="noreferrer"><img src="https://i.stack.imgur.com/85Pba.png" alt="enter image description here"></a></p>
  
  <p>How can I make them borderless and backgroundless again?</p>
  
  <p>PS I am using alert builder to create alert dialogs:</p>
  
  <pre><code>android.app.AlertDialog.Builder
  </code></pre>