| 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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This change adds a new IntentService template in the 'other' category,
that creates a basic IntentService class, some default actions and
optionally some static helper methods to start the service.
Change-Id: I86d656507706c71c914a5ec3f13668b47d6358e0
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change adds a new Daydream template in the 'other'
category, that creates an example DreamService class. The
template gives the option of generating a Settings Activity,
and options specific to DreamService.
Change-Id: Ic50b175610bf67cb482a48e25fed0455dd7c7901
Signed-off-by: Chris Banes <chrisbanes@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change adds an AppWidget template into the 'other' category
that creates helper classes and xml for an AppWidget. The template
supports setting minimum size, resizable, configuration and
home-screen/keyguard options.
Signed-off-by: Rich Hyndman <rhyndman@google.com>
Change-Id: Ic349b0adf10f8814af6d04b62654592cbeb89c09
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
This change adds a new Blank Fragment template in the 'other'
category, that creates an empty Fragment class with the option of
generating some commonly used boilerplate code such as fragment
factory methods, interface callbacks and an empty layout xml.
Change-Id: I4c68b9ddb6f7915ca8e75b2c6372664d39e216f5
|
|/
|
|
|
|
|
|
|
|
|
| |
This change adds a new List Fragment template in the 'other'
category, that creates an empty Fragment class with interface
callbacks. The template gives the option of generating some
commonly used boilerplate code such as fragment factory methods,
and whether to switch to a GridView on large screens.
Change-Id: I1873350e321f25ccbc9cd1e8470387629411d1fe
Signed-off-by: Chris Banes <chrisbanes@google.com>
|
|
|
|
|
|
|
|
|
|
| |
This change adds a new Notification template in the 'other' category, that
creates a helper class to show and hide a notification with optional
expanded styles for Android 4.1+ devices. The template also includes
example resources relevant to notifications and leads the user through the
notification icon wizard.
Change-Id: I9765021ea66844f6f8887e1f1f27d6d262ee89a1
|
|
|
|
| |
Change-Id: Id785c8527eb1602b2b6f29e09fb13f628abaf652
|
|
|
|
| |
Change-Id: Id3685aa63a1e3017b345ec28bbb454656547258c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|