1<#ftl> 2<#-- 3 Copyright 2014 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<sample> 18 <name>${sample.name}</name> 19 <group>NoGroup</group> <!-- This field will be deprecated in the future 20 and replaced with the "categories" tags below. --> 21 <package>${sample.package}</package> 22 23 <!-- change minSdk if needed--> 24 <minSdk>${sample.minSdk}</minSdk> 25 26 <!-- Include additional dependencies here.--> 27 <!-- dependency>com.google.android.gms:play-services:5.0.+</dependency --> 28 29 <strings> 30 <intro> 31 <![CDATA[ 32 Introductory text that explains what the sample is intended to demonstrate. Edit 33 in template-params.xml. 34 ]]> 35 </intro> 36 </strings> 37 38 <!-- The basic templates have already been enabled. Uncomment more as desired. --> 39 <template src="base" /> 40 <!-- template src="ActivityCards" / --> 41 <!-- template src="FragmentView" / --> 42 <!-- template src="CardStream" / --> 43 <!-- template src="SimpleView" / --> 44 <template src="SingleView" /> 45 46 <!-- Include common code modules by uncommenting them below. --> 47 <common src="logger" /> 48 <!-- common src="activities"/ --> 49 50 <metadata> 51 <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} --> 52 <status>DRAFT</status> 53 <!-- See http://go/sample-categories for details on the next 4 fields. --> 54 <!-- Most samples just need to udpate the Categories field. This is a comma- 55 seperated list of topic tags. Unlike the old category system, samples 56 may have multiple categories, so feel free to add extras. Try to avoid 57 simply tagging everything with "UI". :)--> 58 <categories>Getting Started, UI</categories> 59 <technologies>Android</technologies> 60 <languages>Java</languages> 61 <solutions>Mobile</solutions> 62 <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} --> 63 <!-- Beginner is for "getting started" type content, or essential content. 64 (e.g. "Hello World", activities, intents) 65 66 Intermediate is for content that covers material a beginner doesn't need 67 to know, but that a skilled developer is expected to know. 68 (e.g. services, basic styles and theming, sync adapters) 69 70 Advanced is for highly technical content geared towards experienced developers. 71 (e.g. performance optimizations, custom views, bluetooth) 72 73 Expert is reserved for highly technical or specialized content, and should 74 be used sparingly. (e.g. VPN clients, SELinux, custom instrumentation runners) --> 75 <level>BEGINNER</level> 76 <!-- Dimensions: 512x512, PNG fomrat --> 77 <icon>screenshots/icon-web.png</icon> 78 <!-- Path to screenshots. Use <img> tags for each. --> 79 <screenshots> 80 <img>screenshots/1-main.png</img> 81 <img>screenshots/2-settings.png</img> 82 </screenshots> 83 <!-- List of APIs that this sample should be cross-referenced under. Use <android> 84 for fully-qualified Framework class names ("android:" namespace). 85 86 Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation 87 for more details. --> 88 <api_refs> 89 <android>android.app.ActionBar</android> 90 </api_refs> 91 92 <!-- 1-3 line description of the sample here. 93 94 Avoid simply rearranging the sample's title. What does this sample actually 95 accomplish, and how does it do it? --> 96 <description> 97 Sample demonstrating how to instantiate an ActionBar on Android, define 98 action items, and set an "up" navigation link. Uses the Support Library 99 for compatibility with pre-3.0 devices. 100 </description> 101 102 <!-- Multi-paragraph introduction to sample, from an educational point-of-view. 103 Makrdown formatting allowed. This will be used to generate a mini-article for the 104 sample on DAC. --> 105 <intro> 106 Long intro here. 107 108 Multi-paragraph introduction to sample, from an educational point-of-view. 109 *Makrdown* formatting allowed. See [Markdown Documentation][1] 110 for details. 111 112 [1]: http://daringfireball.net/projects/markdown/syntax 113 </intro> 114 </metadata> 115</sample> 116