Recent Changes‎ > ‎

Resource Improvements (AAPT)

posted Mar 18, 2011, 10:16 AM by Tor Norbye   [ updated Mar 18, 2011, 10:45 AM ]
If you have errors in your resource references, the errors from the aapt tool are now highlighted not just on the line but for the specific range of text that is in error:
In addition, there is now a quick assistant to help address these errors. Place the caret anywhere on the line with the error and invoke the quick assistant (Ctrl-1 or Command-1):
(There is also a similar "marker resolution" tied to the error, so in the Problems view you can apply "Quick Fix" to the same error to also invoke this machinery).

When you run this quick assistant, it will if necessary create the right resource file, or if it already exists, edit the existing file, and open it such that you can enter the value part.
By the way, the resource chooser can now also pick resources from the builtin Android framework resources: