Resources are added under //android_webview/java/res/. Similarly, a resource drawable-xxxhdpi/ic_play_circle_outline_black_48dp.png can be accessed in Java with org.chromium.android_webview.R.drawable.ic_play_circle_outline_black_48dp.

Note: WebView-specific resources are prefixed by the org.chromium.android_webview package name.

Shared/common resources

WebView can use strings and resources defined in GRD files in other layers (for now, only //components/). Unlike other Chrome, we trim out all such resources by default. To use these resources, you must add the resource to the appropriate whitelist file: grit_strings_whitelist.txt for IDS_* strings or grit_resources_whitelist.txt for IDR_* resources.