This might help you I will add my answer since I don't use any of the other answers provided. With the Support Library v7, all the styles are actually already defined and ready to use, for the standard buttons, all of these styles are available:
To fix the issue you can do Current Library Support: No. As of the Support Library v23.2 the current ToggleButton implementation does not behave nor is it styled as outlined in the referenced Material Design Guidelines.
What is different between: android.support.design.button.MaterialButton and com.google.android.material.button.MaterialB
By : MelodyMay
Date : March 29 2020, 07:55 AM
hope this fix your issue Google is moving from the Design library (android.support.design) to the Material Components for Android (com.google.android.material). Roughly speaking: