-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
Description
Description: The icon and label text should be grouped together with an 8dp spacing as specified in the MD3 spec.
Expected behavior: MD3 Button guideline
Source code: Sample layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:paddingHorizontal="16dp">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Add"
app:icon="@drawable/ic_round_add_24dp" />
<Button
style="@style/Widget.Material3.Button.TonalButton.Icon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Add"
app:icon="@drawable/ic_round_add_24dp" />
</LinearLayout>Android API version: 36
Material Library version: 1.14.0-alpha07
Device: Any