Managing Resources
IntelliJ IDEA provides a number of facilities for managing resources used in Android applications. In the project view, resource definition files are shown grouped into folders under the res
directory.
The following coding assistance is provided:
- Basic code completion
- Code completion for various resource types, including alternate resources
- Syntax and error highlighting
- Find usages
- Navigation from resource usages to resource definition
- Quick fixes including resource creation upon reference failure
- Code completion for referencing Android SDK resources
- Extract style refactoring (see Refactoring Android XML Layout Files for details)
- Extract layout refactoring (see Refactoring Android XML Layout Files for details)
- Extract string resource intention (see Refactoring Android XML Layout Files for details)
- Translation editor
- For drawable resources, a preview icon is displayed in the
.java
andAndroidManifest.xml
files in the left editor gutter next to this resource reference in the code.
Last modified: 6 March 2018