File tree 2 files changed +3
-0
lines changed
catalog/java/io/material/catalog/topappbar
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ public boolean onOptionsItemSelected(@NonNull MenuItem menuItem) {
84
84
85
85
private void initToolbar (View view , MaterialToolbar toolbar ) {
86
86
toolbar .setNavigationIcon (NAVIGATION_ICON_RES_ID );
87
+ toolbar .setNavigationContentDescription (R .string .cat_topappbar_close_button );
87
88
toolbar .setNavigationOnClickListener (
88
89
v -> showSnackbar (view , toolbar .getSubtitle () + " " + toolbar .getTitle ()));
89
90
toolbar .inflateMenu (MENU_RES_ID );
Original file line number Diff line number Diff line change 88
88
<string name =" cat_topappbar_configure_centered" >Centered</string >
89
89
<!-- Label for a check box for configuring toolbar navigation icon [CHAR_LIMIT=NONE] -->
90
90
<string name =" cat_topappbar_configure_navigation_icon" >Navigation Icon</string >
91
+ <!-- Label for the toolbar navigation icon when it's a close button -->
92
+ <string name =" cat_topappbar_close_button" description =" The title of the close button of the toolbar. [CHAR_LIMIT=NONE]" >Close</string >
91
93
<!-- Label for a check box for configuring toolbar menu items [CHAR_LIMIT=NONE] -->
92
94
<string name =" cat_topappbar_configure_menu_items" >Menu Items</string >
93
95
<!-- Label for a button to apply toolbar configurations [CHAR_LIMIT=NONE] -->
You can’t perform that action at this time.
0 commit comments