| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/
|
|
|
|
|
| |
Also fix a bug in a custom ant task where minSdkVersion and targetApi
were swapped.
Change-Id: Id9bac802377a04270e76def42eaf6a8fb4b3f874
|
|
|
|
|
|
|
|
| |
First, pre-configure the layouts to use with fragments in the
MasterDetailFlow templates. Second, add some fixes to correctly
handle activities that use an @android:layout rather than a @layout/.
Change-Id: Ib10e5a4bd645970a196d0afc57cee4663c4da895
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds an activity template for Login/Registration. The template sets
up a login form that looks good on phones and tablets, and that also
accepts registrations using the same form, for an optimized and quick
mobile UX.
Change-Id: I16f4e7915d88b0b72175fea212faedcd7142ad03
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
- Fix isLauncher check by casting to string.
- Move tools:context to root element in one of the XML files.
Change-Id: I568f82f8589479a54aceedabe97afffbef6bf510
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
This adds an activity template for a fullscreen activity, such as a video
player. The content itself is placeholder content, but this handles the
important bits like showing and hiding system navigation and handling
orientation changes manually (correctly, as of Android 3.2 with the
screenSize config flag).
This adds quite a bit of utility code (SystemUiHider). In the future
we should move this out of the template and into the support library.
Change-Id: I9c9c4c4699a3cec9659171d84bdbd23a5bd41178
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Adds a new template parameter isLauncher to both current activity templates
that determines whether or not the activities will have CATEGORY_LAUNCHER
intent filters.
- Re-arranges some of the template parameters for better consistency
and logical ordering.
Change-Id: I2dd11776a838e727ad7f74dc0014fde235cfc8cb
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds an activity template for Settings. The template comes with
a bunch of example preferences for common things like notifications
and sync frequency, while highlighting design best practices such as
binding summaries to setting values, hiding extraneous buttons in
dialog preferences, and even showing a two-pane UI on tablet devices.
Future work should further improve on this by using the modern
fragment-based PreferenceActivity APIs on all API 11+ devices, not
just tablets. With this change, template code would become pretty
complex, so I punted on it for now.
Change-Id: I8f18fce4a00193c2878d5a94c12f5ad4ee81ce8d
|
|/
|
|
|
|
|
|
| |
- Add a parameter to allow selecting the application theme.
Includes backward-compatibility support using resource
directory qualifiers. Default theme is Holo.Light.DarkActionBar.
Change-Id: Id046a2806fba9ea8ae296859b6d76af18a312b9f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change cleans up the BlankActivity and MasterDetailFlow activity templates
in the following ways:
- Unused search icons are removed.
- Many comments are added for a better explanation of what's going on. See
http://code.google.com/p/android/issues/detail?id=34463
- Code and comments are in better alignment with Android code style and
import order (per http://source.android.com/source/code-style.html)
- Non-trivial BlankActivity templates now require API 11 instead of 14.
More work TBD here.
- Templates are more lint-friendly.
- android:parentActivityName is added when building against API 16.
Change-Id: Iba7b807c7567b161b0e50fb39306209172627c35
|
|
|
|
| |
Change-Id: I84ffc48d8c57ac3f46ab28b62be4785135f2878d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix code which derives a project name from an application name such
that it skips invalid project name characters. For example, the
application name can be "I/O", but the project name should default to
just "IO".
Second, fix the validator code such that when it is validating a
template parameter constraint of "class", it validates it as a class
name, not a package name (so you cannot enter dots for example).
Third, replace the default project template icons with the standard
app icons (for when you disable Create Custom Launcher Icons).
Fourth, tweak the templates such that you don't have unused imports
when you create an activity without navigation, and remove unused
padding dimension resources.
Change-Id: I524608bb6347b4275338ec935e8de56bf3184c23
|
|
|
|
| |
Change-Id: Ic7ff88331557e23aa9effef6532bb9d86a848a34
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generalize the Add Activity wizard into an Add Android Object
wizard and move Custom View in there, such that it's no longer
a top level wizard. Also place service, content provider and
broadcast receivers there.
Fix indentation in simple activity template, and fix template
wizard such that it doesn't reset all the values when you
leave the page (to preview page or previous selector page)
and come back - unless the template has changed.
Change-Id: Idc1e7f76255d8f0010ccc09fbfc79915cc58690d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add minSdk requirements on templates, and attempting to pick a
template with a higher minimum SDK than the one used by the current
project will result in a validation error message (and the Next
button is disabled).
Similarly, add a minSdk requirement on options, such as the
BlankActivity's navigation type. This is used to block all
navigation types except for "none", unless minSdkVersion >= 14.
* Add a buildApi property, which the templates use to only
conditionally write contents which requires a higher compilation
target. For example, the values-v11 and values-v14 folders
specifying Theme.Holo.Light and Theme.Holo.Light.DarkActionBar are
only written if the build target is at least 11 and 14 respectively.
* Fix some other minor issues which prevented the projects from
compiling with low minSdkVersions and low build targets.
* Replace the default simple activity's layout (which was just a
<TextView> with a center gravity, with a <RelativeLayout> containing
the <TextView> with center constraints
* Make the code which combines the list of templates from extras/ and
tools/ smarter; instead of just concatenating the two lists, it now
compares them, and when they have the same names (same templates,
different versions), it now chooses which one to use based on the
template revision number in the metadata file.
Moved some code out of TemplateHandler and into a new TemplateManager
class, such that I could add metadata caching (since the code to merge
templates in multiple files would repeatedly read and parse the
metadata for each pair comparison.)
Change-Id: I94fc4f754dd7125b5be5c78e61efcfc268f73af5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Validate target location such that if the target
directory exists, the wizard complains.
Fix the icons for custom views and unit test projects
such that they have the "+" icon badge indicating that
something will be created. Update labels.
Replace the single theme defintion which references
DarkActionBar such that we have 3 styles, one for pre-11,
one for 11-13 and one for 14+ which define the relevant
light themes.
Remove the unused dimensions in blank projects.
Remove the (unused) "Include compatibility code" toggle.
Change-Id: I3d42c9544170c7a33754b0e410e9f1421d5c323b
|
|
|
|
|
|
|
|
|
|
| |
One of the template files ended up not getting packaged,
probably because it started with a "_".
Also, add @Override to some methods overriding a superclass
method (onCreate(Bundle)) and fix an NPE.
Change-Id: Ic2f15d968cca156704146bdc4ec501d1359a7620
|
|
|
|
| |
Change-Id: Id6b0e5f65fc3a50b352423623332c47f7ab5085d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changeset adds a format attribute to the templates. When the ADT
plugin reads a template file, and the format version is a higher
number than one it knows about, it rejects the templates and informs
the user to upgrade the plugin. This allows us to change the format of
the templates incompatibly in the future without worrying about users
with older versions of the plugin running into problems (because they
upgraded the tools but not ADT).
It also adds a revision number to each template which is used for the
opposite purpose: we can tell if a template is a slightly older
revision and then do some conditional handling.
Change-Id: If6c49012a1beca44c3a05b3e880ffde70294a57e
|
|
|
|
|
|
|
|
|
|
| |
This changeset updates the activity templates with new versions
from Roman. Also fixes a couple of bugs he ran into: the
camel case to underscore conversion methods were reversed, and
the template test wizard didn't reset the activity template
once the second page was shown.
Change-Id: I353af646f92f37bf2a9827d0dc68a409dd9358bc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changeset moves the various FreeMarker templates out of the ADT
plugin and over into the tools install area. The code to instantiate
templates is simplified a bit now that it no longer needs to both
handle files on disk and files read out of the .jar.
There's a new first page to the various template wizards which is
shown if the tools are not up to date (specifically, if the
$SDK/tools/templates/ directory does not exist). This page explains
that the tools have to be updated, and the Next button is disabled
until they are up to date.
This CL also contains some other tweaks suggested by Roman to the
activity-to-layout name mapping and misc code changes.
Change-Id: I3bc65f54a6b79bbeedfb917a9d34ec0d312f3526
|
|
|
|
|
|
|
|
|
|
|
| |
This allows us to only keep classes that are really used either
through code or through XML. Also tweak the default rules for
better control of animated properties.
Added a test of a custom property animation and fixed some other
misc test files.
Change-Id: I7cc5839a764881d8d3c7bfce0a3f12ea7cba660e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Split NewSetupTask in several tasks to make things more flexible.
Particularly this allows more targets to get access to the project
type (app, lib, test, ...) as it's not so computive intensive.
- Fix test project to give them access to the full tested project's
classpath.
- Fix support for projects that test themselves.
- Make sure library projects are instrumented when using the
emma target.
Change-Id: Ia0c9564eacee2521e7cbd5154b8a85ea287ad4fd
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I1c8a8ee2e470a30bc9df76b694e9b68fe09d5712
|
|/
|
|
| |
Change-Id: I3bae567328e1ba615df478cacca72667ef3e6359
|
|
|
|
|
|
|
|
|
|
|
|
| |
- project name on standard build rules
- allow override out.final.file
- allow passing custom javac parameters
- allow note having local.properties as long as sdk.dir is present anyway
- -pre-clean target allows custom clean build
Bug 21023, 21267, 21465, 21525
Change-Id: I4bee2f8c15fab664b1f4ff54d754920d2487f6c7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When creating a new project, the default project template includes a
launcher icon named "icon.png". This changeset changes the name of
this default icon to "ic_launcher.png", in accordance with the
recommended naming convention listed in
http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
(The secondary motivation for this is that the Icon Set Wizard will
suggest ic_launcher as a default launcher name, and it would be nice
if going through the wizard with the default settings would replace
the current project's launcher icon. Given the guidelines above I'd
rather not change the wizard default name to "icon")
Change-Id: I9f516c769019c2635edad4e1e6f01a5110d156fe
|
|
|
|
| |
Change-Id: I5b066d7944d04673d47fa5b9f9cba5b2077a91ad
|
|
|
|
|
|
|
| |
Opening projects in Eclipse will rename the file and
"android update project" will do the same.
Change-Id: I251881897c251eb07c9704eb9c2448cab47e5b83
|
|
|
|
|
|
|
|
|
|
|
| |
New mechanism to embed a build version into build.xml to figure out
whether the build.xml file is obsolete or not.
Use the version-tag: custom case to prevent erase user modifications.
Fixed some issues with the name of the project (put in build.xml) for
test projects which don't have any activity.
Change-Id: Ib0333d15ca9558fffe24a718e704fcf4176c9014
|
|
|
|
| |
Change-Id: I2881d7b5f01229b9da81c6134fc5dfdfb4aacff8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Libraries now generate a jar file that is used by the projects
referencing them, instead of having the main projects compile
the library source code themselves.
This means we can remove the link mechanism that created linked
folder in ADT and instead use a container that is lazily initalized
to be all the jar files of the libraries.
Also merged all 3 Ant build files (main_rules, lib_rules, test_rules)
into a single build.xml that can build any kind of projects.
Lot's of improvement in there too. Much cleaner.
Change-Id: I98307e25cd76722e8595938528e6ef57a7e226ad
|
|
|
|
|
|
|
|
|
|
|
| |
Give anttasks.jar a proper manifest with jar dependencies.
Update the manifest of sdklib.jar with the common.jar dependency.
The pre-setup section of build.xml has changed over time
and really we should be able to control it so move it in
$SDK/tools/ant/pre_setup.xml and import it into build.xml
Change-Id: Iab707deccc0cdbe8d1a9db052ee6fb0762853394
|
|
|
|
|
|
|
| |
Also fixed some trailing space in templates
and automatically generated files.
Change-Id: I2ed5f0067dff4c62b53857b7e0a2dea5dd9a101c
|
|
|
|
|
|
|
|
|
|
| |
Make the dex target use a different property to read
the input folder for classes to dexify.
By default the new property has the same value but can
be overriden if a post-compile target modify (obfuscate)
code into a different location.
Change-Id: I9caeca9f342c7ead1dcee9b4d80cde4ad741a843
|
|
|
|
| |
Change-Id: I88f7e6101b8c03157a320a6c9d9b7424ffbdc7f5
|
|
|
|
| |
Change-Id: Ic99564a7671e588bbf6bc9ee08f7ae1f02a6dcb2
|
|
|
|
| |
Change-Id: I5a237582fd77be24c032af61d52e26976583fcb9
|
|
|
|
| |
Change-Id: I22b5a1c7225425b387e1fd5b6769b5e9249b7c88
|
|
|
|
| |
Change-Id: I09e8e5b40df3b8da4b34fe4f000e98263ea5bc55
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- New export type project to handle exporting a single app represented
by multiple projects (for different minSdkVersion for instance).
- Cleaned-up the current Ant tasks and Eclipse builder to not
deal with ApkSettings anymore. It's not possible to generate
more than one APK in a single pass. The export project will
handle this and call out the normal build system to export
each variant. Make older (deprecated) attribute actually
output a warning.
- Ant rules r3 now with support for multi apk export. Lots
of clean up, add new properties to be overriden by the
multi-apk export task, make older one overrideable too.
- Better handling of older rules, older tasks, etc...
in the SetupTask used by the normal build.
- Add split by ABI to ApkSettings and use it in the
new multi apk export.
- New custom task for multi-apk export. Replaces
SetupTask for export-type projects. Calls out to the
project's build.xml after setting/overriding properties.
This also override the project's versionCode with a
new composite one made of different values.
Also uses a different build.xml, so added a new template:
build.export.template.
Very much a work in progress. Still to do:
Add other types of APK split, create/update export projects,
export the build log, ...
Also, we need to refactor the normal build rules to avoid
so much duplication!
Change-Id: I57a565c60d097a5eabb40108ae1fa8cb209f2380
|
|
|
|
| |
Change-Id: I5f187584afb91814ccba4e984c4c45c24557aaae
|
|
- move back some scripts into development/scripts/
- templates for Ant project go in sdk/templates/
- files that are packaged with the sdk go in sdk/files/
|