Problem and Solutions
Why the button doesn't get all the attributes from android xml ?
By M.K. Verma · 4 May 2022

Go to themes.xml and change parent. parent=Theme.MaterialComponents.NoActionBar.Bridge
<style name="Theme.YourApp" parent="Theme.MaterialComponents.NoActionBar.Bridge">
//yourcode
</style>