android forward declarations not working in 1.6-Collection of common programming errors
according to the official site, Android supports forward declarations from version 1.6 onwards.
Having adjusted the min SDK and target SDK requirements both to ‘4’ in manifest.xml, the layout editor from eclipse is still complaining about unknown declarations in a relative layout:
Multiple annotations found at this line:
ERROR Error: No resource found that matches the given name (at ‘layout_above’ with value ‘@id/ ChkBoxSavePwd’).
ERROR Error: No resource found that matches the given name (at ‘layout_alignLeft’ with value ‘@id/EditTxtServer’).
clean / rebuilding did not help.. anyone stumbled upon this matter ?
-
To use forward references, declare the reference (use the “@+id/…” notation) the first time you use the reference, not on the actual element.