title: MaterialButton size difference to Button
body: <p>I' am setting up a new application and came across the fact that the materialButton's height does't match the size which i set.
  So i tried on the regular Button and as you guys can see in the screenshot below.
  The buttons have different height although they getting the same height as you can see in my code.</p>
  <p>How can i get normal height with MaterialButton?</p>
  <p>Thank you.</p>
  <p>public class MainActivity extends AppCompatActivity {</p>
  <pre><code>MaterialButton materialButton;
  Button button;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      LinearLayout linearLayout = new LinearLayout(this);
      linearLayout.setId(getGeneratedId());
  
      setContentView(linearLayout);
  
      int buttonWidth = getResources().getDimensionPixelSize(R.dimen.buttonWidth);
      int buttonHeight = getResources().getDimensionPixelSize(R.dimen.buttonHeight);
  
      LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(buttonWidth, buttonHeight);
  
      materialButton = new MaterialButton(this);
      materialButton.setId(getGeneratedId());
      materialButton.setLayoutParams(layoutParams);
      materialButton.setBackgroundColor(Color.BLUE);
      materialButton.setText(&quot;MatrialB&quot;);
      materialButton.setTextColor(Color.WHITE);
  
  
      button = new Button(this);
      button.setId(getGeneratedId());
      button.setLayoutParams(layoutParams);
      button.setBackgroundColor(Color.RED);
      button.setText(&quot;Button&quot;);
      button.setTextColor(Color.WHITE);
  
      linearLayout.addView(materialButton);
      linearLayout.addView(button);
      
  }
  
  Integer getGeneratedId() {
      return ViewCompat.generateViewId();
  }
  </code></pre>
  <p>}</p>
  <p><img src="https://i.stack.imgur.com/Ero2C.png" alt="Screenshot" /></p>