I have a few linter warnings for "UnusedAttribute" throughout my project.
- Attribute
elevation
is only used in API level 21 and higher (current min is 16) - Attribute
breakStrategy
is only used in API level 23 and higher (current min is 16) - Attribute
hyphenationFrequency
is only used in API level 23 and higher (current min is 16) - Attribute
letterSpacing
is only used in API level 21 and higher (current min is 16)
I know that I can suppress the warning for ALL of the attributes.
tools:ignore="UnusedAttribute"
or
lintOptions {
disable 'UnusedAttribute'
}
However, I only want to suppress the warning for specific attributes. I tried to do the following without success.
tools:ignore="UnusedAttribute:elevation"
or
lintOptions {
disable 'UnusedAttribute:elevation'
}
I can't find any mention of this in the docs here, here, here, or here. Is there any way to do this?