| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
This change removes templates from the SDK source tree (from sdk/templates)
and points the build/tools.atree build location file to their new location
in tools/base/templates
Change-Id: Id37b24eceaae6dcc0b3bf5078a759a337cb13467
|
|
|
|
|
|
|
|
|
|
| |
Small fixes to pass the Gradle Android plugin as a dependency.
Changes the v4 support library depencency to pull in a Maven
artifact instead of a library jar reference.
Adds a small fix to ensure the Java package parameter in new
projects is nonempty.
Change-Id: Icb3e3a704166c8d03a7996872be6a5082d37e1bb
|
|
|
|
| |
Change-Id: Ibb3391a7b1de26baa2492280f542520b2202569e
|
|
|
|
| |
Change-Id: I259f57f074e18be334fc8d9cdb19724e19dcc9df
|
|
|
|
| |
Change-Id: I64c12c7f2a0887b080752469e6d34320425ad1e1
|
|
|
|
| |
Change-Id: I84bd0213a9dcd6cd13ab94c30a18437a8f84d53a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Modifies the existing templates to output Gradle build files with a
new multi-level directory structure. The templates continue to work
the old way that Eclipse expects, and the new behavior is only enabled
if the "isGradle" global is set to "true".
Files to configure the Gradle wrapper are placed in the SDK at
tools/templates/gradle/wrapper.
This CL changes all file copies and merges to go to fully-qualified
directories set up via global variables. Things go to the old
locations for non-Gradle builds based on how the globals are set up,
but Gradle builds can override output directory variables to reflect
the new directory structure.
This CL also adds NewAndroidLibrary and NewJavaLibrary project
templates, which will be used in the future. The current
NewAndroidApplication template also can output a library, which is
redundant and confusing; this will likely be fixed somehow in the
future.
Change-Id: Ieb830bdfba1797d87a218326ebd37c99d254758e
|
|
|
|
|
|
|
|
| |
This fixes
41154: Template Android Application Project for API v3 reports AAPT
problem with android:allowBackup="true"
Change-Id: I74b4cd0f8df9a74fe9221250cc83b1d15821ce51
|
|
|
|
|
|
|
| |
- Remove extraneous string in FullscreenActivity
- Add allowBackup=true to NewAndroidApplication
Change-Id: I12706cff2ab7b73f04634f47fea4eb14b0ed4e2a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the user enters an activity title like "Android's Tools" in the new
template wizard, an invalid strings.xml file is generated, since the
apostrophe is not properly escaped.
To fix this, there's a new string conversion method in the template
engine, "escapeXmlString", which will perform all the necessary
conversions.
It also adds two other XML escaping functions: one to escape text to
be suitable for XML attribute values, and one to be suitable for XML
text values.
Finally, when verifying this, I discovered that if I inserted
ampersands in the MasterDetail template, I ended up with errors in
various places there a filename was derived from the input string. To
help make this work better, there's also a new "extractLetters" method
which pulls all the characters out of a string (effectively stripping
whitespace and punctuation).
In addition to the above 4 new string conversion methods, the
templates have been updated to use them, and the template format
documentation updated.
Change-Id: I4d4e854ab78d63bc86b8eb0fb9d92246534615e7
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
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
|