Set drawable position inside button
try this
<Button
android:id="@+id/addsubject"
android:layout_width="160dip"
android:layout_height="60dip"
android:layout_gravity="center"
android:drawableLeft="@drawable/ic_action_add"
android:drawablePadding="2dip"
android:gravity="center"
android:paddingLeft="30dip"
android:paddingRight="26dip"
android:singleLine="true"
android:text="@string/addsubject"
android:textSize="13dip" />
Use the app:iconGravity="textStart"
attribute in the MaterialButton
<com.google.android.material.button.MaterialButton
app:icon="@drawable/ic_add_24px"
app:iconGravity="textStart"
../>
If you want to reduce the padding between the icon and the text just use the app:iconPadding
attribute:
<com.google.android.material.button.MaterialButton
app:icon="@drawable/ic_add_24px"
app:iconGravity="textStart"
app:iconPadding="0dp"/>