1 <!-- 2 Copyright 2011 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <p>This sample shows how to use the action bar design pattern on pre-API 11 devices and the built-in 18 <a href="../../../reference/android/app/ActionBar.html">ActionBar</a> on devices supporting API 19 11 or greater. The example 'compatible' action bar, instantiated on pre-Android 3.0 devices, 20 uses the same <a href="../../../guide/topics/resources/menu-resource.html">menu resource</a>-based 21 action item definition mechanism as the new framework API, even supporting the 22 <code>android:showAsAction</code> attribute to a limited extent.</p> 23 24 <img alt="" src="../images/ActionBarCompat1.png" height="320" /> 25 <img alt="" src="../images/ActionBarCompat2.png" height="320" /> 26