Add deprecation notice to README files for samples

When the <status> tag in a template-params.xml is set to "DEPRECATED",
emit a deprecation notice at the top of README.md files.

Change-Id: I708a1f2ffcd3df66588d29c3ef0c6160ff17e79d
diff --git a/templates/base-build/README.md.ftl b/templates/base-build/README.md.ftl
index 3ec6504..78dacb4 100644
--- a/templates/base-build/README.md.ftl
+++ b/templates/base-build/README.md.ftl
@@ -1,6 +1,17 @@
 Android ${sample.name} Sample
 ===================================
 
+<#if sample.metadata.status == "DEPRECATED">
+-----------------------------------------------------------------------------
+**NOTICE: DEPRECATED.**
+
+This sample has been deprecated and is no longer being maintained. Code may
+fail to compile, or no longer represents best practices for development.
+Please check the API documentation associated with this project for updated
+information.
+-----------------------------------------------------------------------------
+
+</#if>
 <#if sample.metadata.description?is_node>
 ${sample.metadata.description?trim?replace('\\n\\n', '\n')?replace('\\"', '"')?replace('\t+', '', 'r')?replace('(^\n+|\n+$)', '', 'r')}
 <#else>
diff --git a/templates/base/README.md.ftl b/templates/base/README.md.ftl
index 3ec6504..78dacb4 100644
--- a/templates/base/README.md.ftl
+++ b/templates/base/README.md.ftl
@@ -1,6 +1,17 @@
 Android ${sample.name} Sample
 ===================================
 
+<#if sample.metadata.status == "DEPRECATED">
+-----------------------------------------------------------------------------
+**NOTICE: DEPRECATED.**
+
+This sample has been deprecated and is no longer being maintained. Code may
+fail to compile, or no longer represents best practices for development.
+Please check the API documentation associated with this project for updated
+information.
+-----------------------------------------------------------------------------
+
+</#if>
 <#if sample.metadata.description?is_node>
 ${sample.metadata.description?trim?replace('\\n\\n', '\n')?replace('\\"', '"')?replace('\t+', '', 'r')?replace('(^\n+|\n+$)', '', 'r')}
 <#else>
diff --git a/templates/unmanaged/README.md.ftl b/templates/unmanaged/README.md.ftl
index 76de21d..848bd6a 100644
--- a/templates/unmanaged/README.md.ftl
+++ b/templates/unmanaged/README.md.ftl
@@ -1,6 +1,17 @@
 Android ${sample.name} Sample
 ===================================
 
+<#if sample.metadata.status == "DEPRECATED">
+-----------------------------------------------------------------------------
+**NOTICE: DEPRECATED.**
+
+This sample has been deprecated and is no longer being maintained. Code may
+fail to compile, or no longer represents best practices for development.
+Please check the API documentation associated with this project for updated
+information.
+-----------------------------------------------------------------------------
+
+</#if>
 <#if sample.metadata.description?is_node>
 ${sample.metadata.description?trim?replace('\\n\\n', '\n')?replace('\\"', '"')?replace('\t+', '', 'r')?replace('(^\n+|\n+$)', '', 'r')}
 <#else>