Dirk Dougherty | fe32c3a | 2013-09-05 10:20:01 -0700 | [diff] [blame^] | 1 | page.tags="ActionBar", "UI", "Compatibility", "Support Library" |
| 2 | sample.group=Input |
Dirk Dougherty | 16f78ac | 2013-08-22 19:45:18 -0700 | [diff] [blame] | 3 | @jd:body |
| 4 | |
| 5 | <p>This sample shows how to use the action bar design pattern on pre-API 11 devices and the built-in |
| 6 | <a href="../../../reference/android/app/ActionBar.html">ActionBar</a> on devices supporting API |
| 7 | 11 or greater. The example 'compatible' action bar, instantiated on pre-Android 3.0 devices, |
| 8 | uses the same <a href="../../../guide/topics/resources/menu-resource.html">menu resource</a>-based |
| 9 | action item definition mechanism as the new framework API, even supporting the |
| 10 | <code>android:showAsAction</code> attribute to a limited extent.</p> |
| 11 | |
| 12 | <img alt="" src="../images/ActionBarCompat1.png" height="320" /> |
| 13 | <img alt="" src="../images/ActionBarCompat2.png" height="320" /> |