Open Bug 1191561 Opened 4 years ago

Add custom drawable tint/tintList attributes to Themed*

Categories

(Firefox for Android :: General, defect)

All
Android
defect
Not set

Tracking

()

People

(Reporter: mcomella, Unassigned)

References

Details

The support libraries provide methods to use the tint and tintList attributes in code via DrawableCompat API, however, there are no XML attributes available.

However, as I implemented in bug 1179479 in MenuItemActionBar, it does seem possible to implement these attributes ourselves via custom XML attributes and accessing the APIs.

These APIs would be at home in Themed*, particularly ThemedImage*, where there is a drawable to tint, though it may need to be a sub-class because these views are auto-generated.

Note: we'd also want MenuItemActionBar to also use this attribute, rather than duplicating it's own so remove that when you complete this.
You need to log in before you can comment on or make changes to this bug.