blob: 2905676f1673f5c11dd490d9a8ddef511fc6480a [file] [log] [blame]
Roman Nurikb99ae732012-03-06 12:26:15 -08001page.title=Backwards Compatibility
Scott Main64d51032013-04-12 14:00:30 -07002page.tags="support"
Dirk Dougherty31558252014-02-08 20:29:06 -08003page.metaDescription=Notes on how Android 4.x adapts UI designed for older hardware and OS versions.
Roman Nurikb99ae732012-03-06 12:26:15 -08004@jd:body
5
Scott Maincbcd17d2013-05-14 08:46:55 -07006<a class="notice-developers" href="{@docRoot}training/basics/supporting-devices/index.html">
7 <div>
8 <h3>Developer Docs</h3>
9 <p>Supporting Different Devices</p>
10 </div>
11</a>
12
Roman Nurikb99ae732012-03-06 12:26:15 -080013<p>Significant changes in Android 3.0 included:</p>
14<ul>
15<li>Deprecation of navigation hardware keys (Back, Menu, Search, Home) in favor of handling navigation
16 via virtual controls (Back, Home, Recents).</li>
17<li>Robust pattern for the use of menus in action bars.</li>
18</ul>
19<p>Android 4.0 brings these changes for tablets to the phone platform.</p>
20
21<h2 id="older-hardware">Adapting Android 4.0 to Older Hardware and Apps</h2>
22
Dirk Dougherty6c1c2632015-05-02 16:31:11 -070023<div class="cols">
24 <div class="col-6">
Roman Nurikb99ae732012-03-06 12:26:15 -080025
26<h4>Phones with virtual navigation controls</h4>
27<p>Android apps written for Android 3.0 and later display actions in the action bar. Actions that don't
28fit in the action bar or aren't important enough to be displayed at the top level appear in the
29action overflow.</p>
30<p>Users access the action overflow by touching it in the action bar.</p>
31
32 </div>
Dirk Dougherty6c1c2632015-05-02 16:31:11 -070033 <div class="col-7">
Roman Nurikb99ae732012-03-06 12:26:15 -080034
35 <img src="{@docRoot}design/media/compatibility_virtual_nav.png">
36
37 </div>
38</div>
39
Dirk Dougherty6c1c2632015-05-02 16:31:11 -070040<div class="cols">
41 <div class="col-6">
Roman Nurikb99ae732012-03-06 12:26:15 -080042
43<h4>Phones with physical navigation keys</h4>
44<p>Android phones with traditional navigation hardware keys don't display the virtual navigation bar at
45the bottom of the screen. Instead, the action overflow is available from the menu hardware key. The
46resulting actions popup has the same style as in the previous example, but is displayed at the bottom of the screen.</p>
47
48 </div>
Dirk Dougherty6c1c2632015-05-02 16:31:11 -070049 <div class="col-7">
Roman Nurikb99ae732012-03-06 12:26:15 -080050
51 <img src="{@docRoot}design/media/compatibility_physical_buttons.png">
52
53 </div>
54</div>
55
Dirk Dougherty6c1c2632015-05-02 16:31:11 -070056<div class="cols">
57 <div class="col-6">
Roman Nurikb99ae732012-03-06 12:26:15 -080058
59<h4>Legacy apps on phones with virtual navigation controls</h4>
60<p>When you run an app that was built for Android 2.3 or earlier on a phone with virtual navigation
61controls, an action overflow control appears at the right side of the virtual navigation bar. You
62can touch the control to display the app's actions in the traditional Android menu styling.</p>
63
64 </div>
Dirk Dougherty6c1c2632015-05-02 16:31:11 -070065 <div class="col-7">
Roman Nurikb99ae732012-03-06 12:26:15 -080066
67 <img src="{@docRoot}design/media/compatibility_legacy_apps.png">
68
69 </div>
70</div>