aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTrevor Johns <trevorjohns@google.com>2015-03-27 21:09:54 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-27 21:09:54 +0000
commit78cbe652e8633f230e34de7854c6456aa6a28dd7 (patch)
treed38e9b90c65aa6cf1474d37a41c59a506fcb5e0b /ui
parent20ae756b0b3ec9dbf19adf5d9676492810660e76 (diff)
parente96a75d74437b9458a73b79079ffcaae4f68526c (diff)
downloadandroid-78cbe652e8633f230e34de7854c6456aa6a28dd7.tar.gz
Merge "Add metadata for ActionBarCompat-Styled sample." into lmp-docs
Diffstat (limited to 'ui')
-rw-r--r--ui/actionbarcompat/ActionBarCompat-Styled/README.md32
-rw-r--r--ui/actionbarcompat/ActionBarCompat-Styled/screenshots/1-activity.png.pngbin0 -> 91341 bytes
-rw-r--r--ui/actionbarcompat/ActionBarCompat-Styled/screenshots/big_icon.pngbin0 -> 78277 bytes
-rw-r--r--ui/actionbarcompat/ActionBarCompat-Styled/template-params.xml38
4 files changed, 64 insertions, 6 deletions
diff --git a/ui/actionbarcompat/ActionBarCompat-Styled/README.md b/ui/actionbarcompat/ActionBarCompat-Styled/README.md
index e957f3f6..64ac0a48 100644
--- a/ui/actionbarcompat/ActionBarCompat-Styled/README.md
+++ b/ui/actionbarcompat/ActionBarCompat-Styled/README.md
@@ -1,16 +1,36 @@
Android ActionBarCompat-Styled Sample
-==============================
+===================================
-This sample shows you how to use ActionBarCompat with a customized theme. It utilizes a
-split action bar when running on a device with a narrow display, and show three tabs.
+This sample shows you how to use ActionBarCompat with a customized theme. It utilizes a
+split action bar when running on a device with a narrow display, and shows three tabs.
+
+Introduction
+------------
+
+This sample shows how to style an ActionBar using the [support library][1] on devices running
+Android v2.1+ using a custom theme.
+
+This Activity extends from ActionBarActivity, which provides all of the function
+necessary to display a compatible Action Bar on devices running Android v2.1+.
+A custom application theme and styles are defined in XML.
+
+Assets have been generated using the ['Android Action Bar Style Generator'][2].
+
+[1]: http://developer.android.com/tools/support-library/
+[2]: http://jgilfelt.github.io/android-actionbarstylegenerator
Pre-requisites
--------------
-- Android SDK v20
-- Android Build Tools v20
+- Android SDK v21
+- Android Build Tools v21.1.1
- Android Support Repository
+Screenshots
+-------------
+
+<img src="screenshots/1-activity.png" height="400" alt="Screenshot"/>
+
Getting Started
---------------
@@ -41,7 +61,7 @@ file to you 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
+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
diff --git a/ui/actionbarcompat/ActionBarCompat-Styled/screenshots/1-activity.png.png b/ui/actionbarcompat/ActionBarCompat-Styled/screenshots/1-activity.png.png
new file mode 100644
index 00000000..6977143c
--- /dev/null
+++ b/ui/actionbarcompat/ActionBarCompat-Styled/screenshots/1-activity.png.png
Binary files differ
diff --git a/ui/actionbarcompat/ActionBarCompat-Styled/screenshots/big_icon.png b/ui/actionbarcompat/ActionBarCompat-Styled/screenshots/big_icon.png
new file mode 100644
index 00000000..59392835
--- /dev/null
+++ b/ui/actionbarcompat/ActionBarCompat-Styled/screenshots/big_icon.png
Binary files differ
diff --git a/ui/actionbarcompat/ActionBarCompat-Styled/template-params.xml b/ui/actionbarcompat/ActionBarCompat-Styled/template-params.xml
index 6e7e09f1..d7effc83 100644
--- a/ui/actionbarcompat/ActionBarCompat-Styled/template-params.xml
+++ b/ui/actionbarcompat/ActionBarCompat-Styled/template-params.xml
@@ -36,4 +36,42 @@
<template src="base"/>
+<metadata>
+ <status>PUBLISHED</status>
+ <categories>ActionBar</categories>
+ <technologies>Android</technologies>
+ <languages>Java</languages>
+ <solutions>Mobile</solutions>
+ <level>INTERMEDIATE</level>
+ <icon>screenshots/big_icon.png</icon>
+ <screenshots>
+ <img>screenshots/1-activity.png</img>
+ </screenshots>
+
+ <api_refs>
+ <android>android.support.v7.app.ActionBarActivity</android>
+ </api_refs>
+
+ <description>
+<![CDATA[
+This sample shows you how to use ActionBarCompat with a customized theme. It utilizes a
+split action bar when running on a device with a narrow display, and shows three tabs.
+]]>
+ </description>
+ <intro>
+<![CDATA[
+This sample shows how to style an ActionBar using the [support library][1] on devices running
+Android v2.1+ using a custom theme.
+
+This Activity extends from ActionBarActivity, which provides all of the function
+necessary to display a compatible Action Bar on devices running Android v2.1+.
+A custom application theme and styles are defined in XML.
+
+Assets have been generated using the ['Android Action Bar Style Generator'][2].
+
+[1]: http://developer.android.com/tools/support-library/
+[2]: http://jgilfelt.github.io/android-actionbarstylegenerator
+]]>
+ </intro>
+</metadata>
</sample>