aboutsummaryrefslogtreecommitdiffstats
path: root/sdk_common/src/com/android/ide/common/resources
Commit message (Collapse)AuthorAgeFilesLines
* Remove source of prebuilts.Raphael Moll2013-02-0643-8076/+0
| | | | | | Sources are now located in tools/base.git. Change-Id: I9cbe1deb98f8c43e90f5fb04b668f664b9850620
* 39612: Question Mark causes Eclipse Graphical Layout Editor to Freak OutTor Norbye2013-01-142-74/+273
| | | | | | | | | | | | | | Handle string values starting with ? and @ even if they do not correspond to actual theme or resource URLs. Also fix the code which handles processing strings read from XML files; apply unescaping rules (for unicode, newlines and tabs, removing quotes, etc). Also make the style warning include the full resource URI (it was only logging the stripped URI). Change-Id: I9b9a87ac4841faeacd1d94a43fa091702e60f4d8
* Handle theme resources in ResourceRepository.hasResourceItemTor Norbye2013-01-041-1/+30
| | | | | | | This adds the same URL rewriting logic as is already used in parseResource in the same class Change-Id: Ifb71111030e4fd19b50f2b3213d486bef8b14f64
* 42271: Open file input streams need to be closed at some pointTor Norbye2013-01-033-3/+12
| | | | | | | | | | By default, SAX and DOM parsers close the input source after parsing. However, in SDK common we have a couple of custom parsers using kxml, which does *not* close the input. Rather than fixing all the call sites, this CL makes these parsers behave the same way as the SAX/DOM parsers -- close the input at the end of parse(). Change-Id: I4c5588234865047c88380dc7835beac38817c09f
* Support layout aliases properlyTor Norbye2012-12-061-21/+173
| | | | Change-Id: I3c1dac7809a225118b69f1557a42051e96011198
* Add support for layout dir qualifiers.Xavier Ducrohet2012-11-292-17/+104
| | | | Change-Id: I6da728d079975fa19f1ae816fa585031a9c6fe75
* 40222: Cannot render strings starting with "\@"Tor Norbye2012-11-221-0/+3
| | | | Change-Id: I47d41ea2436a13a83e666471397c631a893dda02
* 39213: Refreshing resources fails with "Error: name expected"Tor Norbye2012-11-021-2/+5
| | | | Change-Id: I6cfe252a830e55da5135b17964fc746db2de8964
* Lazy loading (and reloading) of project resources.Xavier Ducrohet2012-10-102-48/+108
| | | | Change-Id: I4a725d523ae14ba8b487076e230fe9d622d5d281
* Multi-Configuration Layout EditingTor Norbye2012-10-031-0/+47
| | | | | | | | This changeset adds support for previewing other configurations (as well as including contexts) for a layout, with live updates. Change-Id: Iff3523d6f5749b3287716e563330fb18c8576611
* Validate user edits in XML filesTor Norbye2012-09-205-31/+202
| | | | | | | | | | | | | | | | | | | | Around ADT 15 or so we introduced a bunch of optimizations to run AAPT much less frequently, since with large projects it can take a long time, and end up blocking the UI if you try to save twice. Unfortunately, one side effect of this change is that if you edit only the *value* of an attribute, we will not re-run aapt, which means that if you set the value to a bogus value, you will get no error message until the next time AAPT runs (usually when you try to run). This changeset fixes this. We already have the attribute metadata which aapt uses, so now, when an XML file is changed and saved, we process it with an XML pull parser, and validate all the Android namespace attributes. If any are found to not be correct, then we request a full AAPT process, which will then display errors as appropriate. Change-Id: I374c19648e29c27c6d82616b3ee602cb2343cd3a
* Rename ide_common to sdk_commonSiva Velusamy2012-09-1841-0/+7316
Change-Id: I1b39ee439a532f3f6758be35b569948e2e906665