diff options
author | Raphael Moll <ralf@android.com> | 2010-11-22 18:46:40 -0800 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2010-11-23 14:57:50 -0800 |
commit | 3dfd8112f7137821ef9191bfdd82a7f30ae52dc6 (patch) | |
tree | ddefddbd003ececbe91675d7b4da658f7e8e371b /eclipse/plugins/com.android.ide.eclipse.adt/templates | |
parent | 33620a2caa9a8d757eb5aa6b197577408a197410 (diff) | |
download | sdk-3dfd8112f7137821ef9191bfdd82a7f30ae52dc6.zip sdk-3dfd8112f7137821ef9191bfdd82a7f30ae52dc6.tar.gz sdk-3dfd8112f7137821ef9191bfdd82a7f30ae52dc6.tar.bz2 |
ADT: ensure <application> is last in manifest.
ADT descriptors have no notion of XML ordering.
We modify the concept of "mandatory" descriptor to
have normal mandatory descriptors versus "mandatory last" ones.
("mandatory" elements are virtual reserved slots that are
always present in the UiModel even if they have no real
counterpart in the XML model. These elements ensure they can
be manipulated in the UI even before their XML is created.)
Then we try our best to ensure the "last" ones remain at the
end of the UiNode model. There are 2 cases:
- in UiElementNode, when constructing the UINode model when
parsing an existing XML model, we try to reorder the nodes
at the end if possible.
- in UiActions, when adding a new element to the UiModel, we
try to place it before the first "mandatory last" element.
SDK Bug 3197310
Change-Id: I6a7d9502a95ebe92ff82e07f3f3249a0d25c2154
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/templates')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template b/eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template index 5d57413..8b7e959 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template +++ b/eclipse/plugins/com.android.ide.eclipse.adt/templates/AndroidManifest.template @@ -3,10 +3,10 @@ package="PACKAGE" android:versionCode="1" android:versionName="1.0"> +USES-SDK +TEST-INSTRUMENTATION <application android:icon="@drawable/icon" android:label="APPLICATION_NAME"> ACTIVITIES TEST-USES-LIBRARY </application> -USES-SDK -TEST-INSTRUMENTATION -</manifest> +</manifest> |