Infeasible
Status Update
Comments
ia...@gmail.com <ia...@gmail.com> #2
Hey ! I am interested to work on this. Can I get some guidance on how to submit this feature?
Thanks!!!
Thanks!!!
al...@google.com <al...@google.com> #3
Certainly! I can help sponsor this and review your CLs.
See the
ja...@gmail.com <ja...@gmail.com> #4
Comment has been deleted.
as...@google.com <as...@google.com>
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit 2af1286be31bde13991cb3554d046db3691d90be
Author: Julia McClellan <juliamcclellan@google.com>
Date: Mon Apr 25 15:44:17 2022
Support setting the tint of all icons in a toolbar.
Test: unit tests for the toolbar method
Bug: 128665405
Relnote: Added setIconTint method to Toolbar and ActionMenuView
Change-Id: I704433bb807a06aa61e60ea3b9be68d2bbcff96a
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/ToolbarTest.java
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/Toolbar.java
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/ActionMenuView.java
M appcompat/appcompat/src/androidTest/res/layout/appcompat_toolbar_activity.xml
https://android-review.googlesource.com/2077722
Branch: androidx-main
commit 2af1286be31bde13991cb3554d046db3691d90be
Author: Julia McClellan <juliamcclellan@google.com>
Date: Mon Apr 25 15:44:17 2022
Support setting the tint of all icons in a toolbar.
Test: unit tests for the toolbar method
Bug: 128665405
Relnote: Added setIconTint method to Toolbar and ActionMenuView
Change-Id: I704433bb807a06aa61e60ea3b9be68d2bbcff96a
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/ToolbarTest.java
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/Toolbar.java
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/ActionMenuView.java
M appcompat/appcompat/src/androidTest/res/layout/appcompat_toolbar_activity.xml
ju...@google.com <ju...@google.com>
ju...@google.com <ju...@google.com>
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
commit b4e760795289651b85191452ec1fc67cbca43fd7
Author: Julia McClellan <juliamcclellan@google.com>
Date: Wed May 25 20:46:27 2022
Revert "Support setting the tint of all icons in a toolbar."
This reverts commit 2af1286be31bde13991cb3554d046db3691d90be.
Reason for revert: This implementation doesn't correctly set the tint of an item if, after the toolbar's tint is set, a menu defined in XML is inflated into the toolbar which has items with tint defined in the XML. There isn't a clean way to handle this case given the structure of the library.
Test: N/A
Relnote: Remove setIconTint method from Toolbar and ActionMenuView
Bug: 128665405
Bug: 233373535
Change-Id: I00619f993e57e7b72b9432ff841450d2445c28a6
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/ToolbarTest.java
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/Toolbar.java
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/ActionMenuView.java
M appcompat/appcompat/src/androidTest/res/layout/appcompat_toolbar_activity.xml
https://android-review.googlesource.com/2106827
Branch: androidx-main
commit b4e760795289651b85191452ec1fc67cbca43fd7
Author: Julia McClellan <juliamcclellan@google.com>
Date: Wed May 25 20:46:27 2022
Revert "Support setting the tint of all icons in a toolbar."
This reverts commit 2af1286be31bde13991cb3554d046db3691d90be.
Reason for revert: This implementation doesn't correctly set the tint of an item if, after the toolbar's tint is set, a menu defined in XML is inflated into the toolbar which has items with tint defined in the XML. There isn't a clean way to handle this case given the structure of the library.
Test: N/A
Relnote: Remove setIconTint method from Toolbar and ActionMenuView
Bug: 128665405
Bug: 233373535
Change-Id: I00619f993e57e7b72b9432ff841450d2445c28a6
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/ToolbarTest.java
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/Toolbar.java
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/ActionMenuView.java
M appcompat/appcompat/src/androidTest/res/layout/appcompat_toolbar_activity.xml
ju...@google.com <ju...@google.com> #7
Given the structure of the library, there isn't a good way to ensure the tint of icons on a toolbar are set correctly in all cases. For instance if, after the toolbar's tint is set, a menu defined in XML is inflated into the toolbar which has items with tint defined in the XML, it isn't feasible to override the tint from the XML for those items.
Description
Furthermore, there is no easy way to do this. Either the icon colors have to be set programmatically or we have to add an extra drawable (e.g drawable XML tinting some existing drawable) for each menu item.
Please add a method to ActionMenuView to set the tint color (icon color) to be applied to all icons.