| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- BlankActivity: fix a bug where 'none' navtype + minApi < 11 didn't check for API 11
before using ActionBar APIs
- BlankActivity: add horizontal and vertical padding, customized for
sw720dp-land
- BlankActivity: remove navtype that allowed tabs without swipe
- change naming convention R.menu.activity_foo to R.menu.foo
- change naming convention R.id.menu_foo to R.id.action_foo
- add simple XXHDPI icon (scaled up from XHDPI... to be replaced in a future
update)
Change-Id: Ic5bf3dcfb13e714df505dcbf7c1227b610f0a36e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a plugin test which runs through project creation
for all project+activity combinations, across a series of
minSdkVersion, targetSdkVersion and build targets, and also
varies all the enum and boolean properties (such as the
theme setting, the navigation type, etc). For each created
project, it runs both ant (to verify that there are no
build errors), as well as lint, to verify that there are no
lint warnings, except a few allowed ones (such as the
is-using-latest-targetSdkVersion, since we are deliberately
testing older targetSdkVersions, and the icon checks (disabled
because something about the image loading from unit tests
hangs Eclipse).
It also tests creating all non-activity templates into an
existing project.
Also fixes a few template issues found by the unit test.
Change-Id: Ibe61c47053a7c3ad17e7e1bbb31f9ae3b49c143a
|
|
|
|
| |
Change-Id: I24760a17de7ec5278a922c109e8ab1fbe7123bfd
|
|
|
|
|
|
|
|
| |
It's considered a best practice for activity onCreate overrides to maintain the
original visibility of the method, which is protected. Implement this for all
activity templates.
Change-Id: Ia501628a3f330f671398935103fafc1834f8e78e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|