MaterialButton android code example
Example: matterial button with icon only android
<style name="ChatRefresh" parent="Widget.MaterialComponents.Button">
<item name="android:insetLeft">0sp</item>
<item name="android:insetTop">0sp</item>
<item name="android:insetRight">0sp</item>
<item name="android:insetBottom">0sp</item>
<item name="android:textColor">#F5F5F5</item>
<item name="elevation">5dp</item>
<item name="iconGravity">textStart</item>
<item name="iconPadding">0dp</item>
<item name="cornerRadius">15sp</item>
</style>