I am trying to change margin for all my buttons in application. I have defined style:
<resources>
<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
<item name="materialButtonStyle">@style/TempButtonStyle</item>
</style>
<style name="TempButtonStyle" parent="Widget.MaterialComponents.Button">
<item name="android:layout_margin">10dp</item>
</style>
</resources>
but it doesn't work. If I attach this style to single button it works great:
<com.google.android.material.button.MaterialButton
android:id="@+id/change_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/change_date"
style="@style/TempButtonStyle"/>
Any suggestions how to change it globally?