Skip to content

Commit 1125655

Browse files
pubiqqdsn5ft
authored andcommitted
[Adaptive][Catalog] Fix crash occurring with all the adaptive demos
Resolves #4697 Resolves #4698 PiperOrigin-RevId: 741684824
1 parent bc2592a commit 1125655

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

catalog/java/io/material/catalog/adaptive/res/layout/cat_adaptive_nav_header.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@
2424
android:clipToPadding="false"
2525
android:clipChildren="false">
2626

27-
<ImageButton
27+
<Button
2828
android:id="@+id/nav_button"
29-
style="?attr/borderlessButtonStyle"
30-
android:layout_width="@dimen/mtrl_min_touch_target_size"
31-
android:layout_height="@dimen/mtrl_min_touch_target_size"
29+
style="?attr/materialIconButtonStyle"
30+
android:layout_width="wrap_content"
31+
android:layout_height="wrap_content"
3232
android:layout_gravity="start"
3333
android:layout_marginStart="4dp"
3434
android:layout_marginLeft="4dp"
3535
android:layout_marginBottom="16dp"
36-
android:background="?attr/actionBarItemBackground"
37-
android:src="@drawable/ic_drawer_menu_24px"
38-
android:contentDescription="@string/cat_adaptive_nav_button"/>
36+
android:contentDescription="@string/cat_adaptive_nav_button"
37+
app:icon="@drawable/ic_drawer_menu_24px"/>
3938

4039
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
4140
android:id="@+id/nav_fab"

0 commit comments

Comments
 (0)