diff options
Diffstat (limited to 'docs/html/tools/projects/templates.jd')
| -rw-r--r-- | docs/html/tools/projects/templates.jd | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/docs/html/tools/projects/templates.jd b/docs/html/tools/projects/templates.jd index fce24fd..966d25f 100644 --- a/docs/html/tools/projects/templates.jd +++ b/docs/html/tools/projects/templates.jd @@ -28,7 +28,7 @@ page.title=Using Code Templates <p>The SDK tools provide templates for quickly creating Android application projects with the basic - structure or for adding components to your existing projects. The code templates + structure or for adding components to your existing application modules. The code templates provided by the Android SDK follow the Android design and development guidelines to get you on the right track to creating a beautiful, functional application.</p> @@ -45,30 +45,29 @@ page.title=Using Code Templates <h2 id="app-templates">Application Templates</h2> -<p>Application templates create basic Android applications that you can immediately run and test - on your Android device. These templates are available when you create a new Android project, +<p>Application templates create basic Android application modules that you can immediately run and test + on your Android device. These templates are available when you create a new Android module, though you can also use these templates to <a href="#activity-templates">add new activities</a> - to an existing project.</p> + to an existing module.</p> <p>To use Android application templates:</p> <ol> - <li>In Eclipse, with the Android Development Tools (ADT) plugin installed, select <strong>File - > New > Android</strong>.</li> - <li>Select <strong>Android > Android Application Project</strong>, and click - <strong>Next</strong>.</li> + <li>In Android Studio, select <strong>File > New > Module</strong>.</li> <li>Enter the settings for your application, including <strong>Application Name</strong>, - <strong>Project Name</strong>, <strong>Package Name</strong>, API level settings and - presentation <strong>Theme</strong>, and click <strong>Next</strong>.</li> - <li>Enter the project configuration options, and click <strong>Next</strong>.</li> - <li>Optionally enter launcher icon settings, and click <strong>Next</strong>.</li> - <li>In the <strong>Create Activity</strong> page, select an application template to use. + <strong>Company Domain</strong>, <strong>Package name</strong>, and <strong>minimum SDK</strong>, + then click <strong>Next</strong>.</li> + <li>Select an application template to use, then click <strong>Next</strong>. For example, <ul> <li><a href="#blank-activity">BlankActivity</a></li> <li><a href="#full-screen-activity">FullScreenActivity</a></li> <li><a href="#master-detail-activity">MasterDetailFlow</a></li> + </ul> </li> + <li>Enter the settings for your activity, including <strong>Activity Name</strong>, + <strong>layout Name</strong>, <strong>Title</strong>, and <strong>Menu Resource Name</strong>, + then click <strong>Finish</strong>.</li> </ol> <p class="note"> @@ -247,7 +246,7 @@ page.title=Using Code Templates <li>Right click the project folder of the Android application where you want to add an activity.</li> <li>Select <strong>New > Other...</strong></li> - <li>Select <strong>Android > Android Activity</strong>, and click <strong>Next</strong>.</li> + <li>Select <strong>Android > Android Activity</strong>, then click <strong>Next</strong>.</li> <li>Select an activity template, then follow the instructions to add it to your existing application. <ul> @@ -331,17 +330,23 @@ including the previously mentioned activities as well as the following additiona <p>To use Android object templates:</p> <ol> - <li>Right click the project folder of the Android application where you want to add a code + <li>Right-click the module folder of the Android application where you want to add a code component.</li> - <li>Select <strong>New > Other...</strong></li> - <li>Select <strong>Android > Android Object</strong>, and click <strong>Next</strong>.</li> - <li>Select an object template, then follow the instructions to add it to your existing + <li>Select <strong>New</strong></li> + <li>Select the object type and template, then follow the instructions to add it to your existing application. <ul> - <li>{@link android.content.BroadcastReceiver}</li> - <li>{@link android.content.ContentProvider}</li> - <li><a href="{@docRoot}guide/topics/ui/custom-components.html">Custom View</a></li> - <li>{@link android.app.Service}</li> + <li>AIDL</li> + <li>Activity</li> + <li>Folder</li> + <li>Fragment</li> + <li>Google</li> + <li>Other</li> + <li>Service</li> + <li>UI Component</li> + <li>Wear</li> + <li>Widget</li> + <li>XML</li> </ul> </li> </ol> |
