summaryrefslogtreecommitdiffstats
path: root/docs/html/preview/material/compatibility.jd
diff options
context:
space:
mode:
authorRicardo Cervera <rcervera@google.com>2014-06-24 21:39:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-24 17:32:43 +0000
commit5f5610caf5a0154630cb900c3c28ae8acf591ce3 (patch)
treedae2fd01a1a05a9cffb1776bba6c7fb61ce4a3a6 /docs/html/preview/material/compatibility.jd
parent4af882fdf5ca60a9038cd66265ec2723c15a26c5 (diff)
parent6dacb26b07c7a13e245891b688290c50cd8e8a1f (diff)
downloadframeworks_base-5f5610caf5a0154630cb900c3c28ae8acf591ce3.zip
frameworks_base-5f5610caf5a0154630cb900c3c28ae8acf591ce3.tar.gz
frameworks_base-5f5610caf5a0154630cb900c3c28ae8acf591ce3.tar.bz2
Merge "docs: Material L Preview engineering review fixes" into klp-modular-dev
Diffstat (limited to 'docs/html/preview/material/compatibility.jd')
-rw-r--r--docs/html/preview/material/compatibility.jd29
1 files changed, 24 insertions, 5 deletions
diff --git a/docs/html/preview/material/compatibility.jd b/docs/html/preview/material/compatibility.jd
index ce04e9e..fb97112 100644
--- a/docs/html/preview/material/compatibility.jd
+++ b/docs/html/preview/material/compatibility.jd
@@ -14,7 +14,7 @@ page.title=Compatibility
</div>
</div>
-<p>The new material design features (like the material theme and custom animations) are only
+<p>The new material design features (like the material theme and activity transitions) are only
available in the Android L Developer Preview. However, you can design your apps to make use of
these features when running on devices with the Android L Developer Preview and still be
compatible with previous releases of Android.</p>
@@ -49,15 +49,34 @@ alternative layouts to customize how your app looks on earlier versions of Andro
and your alternative layout files for earlier versions of Android inside <code>res/layout/</code>.
Alternative layouts have the same file name.</p>
+<p>To avoid duplication of code, define your styles inside <code>res/values/</code> and modify the
+styles in <code>res/values-v21/</code> for the new APIs.</p>
+
<h2 id="widgets">UI Widgets</h2>
<p>The <code>RecyclerView</code> and <code>CardView</code> widgets are included in the Android L
-Developer Preview Support Library, so they are available in earlier versions of Android.</p>
+Developer Preview Support Library, so they are available in earlier versions of Android with
+these limitations:</p>
+
+<ul>
+<li><code>CardView</code> falls back to a programmatic shadow implementation using additional padding.</li>
+<li><code>CardView</code> does not clip its children views that intersect with rounded corners.</li>
+</ul>
+
+<p>These limitations do not apply to the Android L Developer Preview.</p>
<h2 id="animation">Animation APIs</h2>
-<p>The new APIs for custom animations are only available in the Android L Developer Preview. To
-preserve compatibility with earlier verisons of Android, check the system version at runtime before
-you invoke these APIs.</p> \ No newline at end of file
+<p>The following new APIs are only available in the Android L Developer Preview:</p>
+
+<ul>
+<li>Activity transitions</li>
+<li>Touch feedback</li>
+<li>Reveal animations</li>
+<li>Path-based animations</li>
+</ul>
+
+<p>To preserve compatibility with earlier verisons of Android, check the system version at
+runtime before you invoke these APIs.</p> \ No newline at end of file