New issue
Advanced search Search tips

Issue 804427 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Fix AppCompatResource lint errors

Project Member Reported by wnwen@chromium.org, Jan 22 2018

Issue description

1. Remove <issue id="AppCompatResource" severity="ignore"/> from build/android/lint/suppressions.xml
2. Consider http://tools.android.com/tips/lint-checks (search "AppCompatResource")
3. Determine whether we are actually using appcompat library in each instance and fix/suppress the warnings with comments

@Ted - Would you mind routing this to the right person who has some experience with appcompat? I tried fixing these myself but it just resulted in a mess since I'm not very familiar with Android xml namespaces in layouts.
 
Cc: tedc...@chromium.org
Components: UI>Browser
Owner: ----
Status: Available (was: Assigned)
AppCompatResource
-----------------
Summary: Menu namespace

Priority: 5 / 10
Severity: Error
Category: Correctness

When using the appcompat library, menu resources should refer to the
showAsAction in the app: namespace, not the android: namespace.

Similarly, when not using the appcompat library, you should be using the
android:showAsAction attribute.

Sign in to add a comment