Add material colors to samples.

Add colors element to template-params.xml to specify any of the material colours like colorPrimary or colorAccent.

eg:
<colors>
  <color>
    <name>colorPrimary</name>
    <hexval>#FF0000</hexval>
  </color>
  <color>
    <name>colorAccent</name>
    <hexval>#0000FF</hexval>
  </color>
</colors>

Change-Id: I4aa0183ae39dfb7f35cbd70b54fba86a830210e1
diff --git a/templates/base/_MODULE_/src/template/res/values-v21/base-colors.xml.ftl b/templates/base/_MODULE_/src/template/res/values-v21/base-colors.xml.ftl
new file mode 100755
index 0000000..64062a2
--- /dev/null
+++ b/templates/base/_MODULE_/src/template/res/values-v21/base-colors.xml.ftl
@@ -0,0 +1,23 @@
+<#ftl>
+<#--
+        Copyright 2014 The Android Open Source Project
+
+        Licensed under the Apache License, Version 2.0 (the "License");
+        you may not use this file except in compliance with the License.
+        You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+-->
+<resources>
+
+    <#list sample.colors.color as col>
+        <color name="${col.name}">${col.hexval}</color>
+    </#list>
+
+</resources>
diff --git a/templates/base/_MODULE_/src/template/res/values-v21/base-template-styles.xml.ftl b/templates/base/_MODULE_/src/template/res/values-v21/base-template-styles.xml.ftl
new file mode 100644
index 0000000..27c0a02
--- /dev/null
+++ b/templates/base/_MODULE_/src/template/res/values-v21/base-template-styles.xml.ftl
@@ -0,0 +1,26 @@
+<#ftl>
+<#--
+        Copyright 2014 The Android Open Source Project
+
+        Licensed under the Apache License, Version 2.0 (the "License");
+        you may not use this file except in compliance with the License.
+        You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+        Unless required by applicable law or agreed to in writing, software
+        distributed under the License is distributed on an "AS IS" BASIS,
+        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+        See the License for the specific language governing permissions and
+        limitations under the License.
+-->
+<resources>
+
+    <!-- Activity themes -->
+    <style name="Theme.Base" parent="android:Theme.Material.Light">
+        <#list sample.colors.color as col>
+            <item name="android:${col.name}">@color/${col.name}</item>
+        </#list>
+    </style>
+
+</resources>
diff --git a/templates/base/_MODULE_/src/template/res/values-v21/template-styles.xml b/templates/base/_MODULE_/src/template/res/values-v21/template-styles.xml
deleted file mode 100644
index 134fcd9..0000000
--- a/templates/base/_MODULE_/src/template/res/values-v21/template-styles.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<!--
-  Copyright 2014 The Android Open Source Project
-
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
-  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-  -->
-
-<resources>
-
-    <!-- Activity themes -->
-    <style name="Theme.Base" parent="android:Theme.Material.Light" />
-
-</resources>