diff options
Diffstat (limited to 'docs/html/preview/material/compatibility.jd')
| -rw-r--r-- | docs/html/preview/material/compatibility.jd | 29 |
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 |
