| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 1 | page.title=Backwards Compatibility |
| Scott Main | 64d5103 | 2013-04-12 14:00:30 -0700 | [diff] [blame] | 2 | page.tags="support" |
| Dirk Dougherty | 3155825 | 2014-02-08 20:29:06 -0800 | [diff] [blame] | 3 | page.metaDescription=Notes on how Android 4.x adapts UI designed for older hardware and OS versions. |
| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 4 | @jd:body |
| 5 | |
| Scott Main | cbcd17d | 2013-05-14 08:46:55 -0700 | [diff] [blame] | 6 | <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 Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 13 | <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 Dougherty | 6c1c263 | 2015-05-02 16:31:11 -0700 | [diff] [blame] | 23 | <div class="cols"> |
| 24 | <div class="col-6"> |
| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 25 | |
| 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 |
| 28 | fit in the action bar or aren't important enough to be displayed at the top level appear in the |
| 29 | action overflow.</p> |
| 30 | <p>Users access the action overflow by touching it in the action bar.</p> |
| 31 | |
| 32 | </div> |
| Dirk Dougherty | 6c1c263 | 2015-05-02 16:31:11 -0700 | [diff] [blame] | 33 | <div class="col-7"> |
| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 34 | |
| 35 | <img src="{@docRoot}design/media/compatibility_virtual_nav.png"> |
| 36 | |
| 37 | </div> |
| 38 | </div> |
| 39 | |
| Dirk Dougherty | 6c1c263 | 2015-05-02 16:31:11 -0700 | [diff] [blame] | 40 | <div class="cols"> |
| 41 | <div class="col-6"> |
| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 42 | |
| 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 |
| 45 | the bottom of the screen. Instead, the action overflow is available from the menu hardware key. The |
| 46 | resulting 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 Dougherty | 6c1c263 | 2015-05-02 16:31:11 -0700 | [diff] [blame] | 49 | <div class="col-7"> |
| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 50 | |
| 51 | <img src="{@docRoot}design/media/compatibility_physical_buttons.png"> |
| 52 | |
| 53 | </div> |
| 54 | </div> |
| 55 | |
| Dirk Dougherty | 6c1c263 | 2015-05-02 16:31:11 -0700 | [diff] [blame] | 56 | <div class="cols"> |
| 57 | <div class="col-6"> |
| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 58 | |
| 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 |
| 61 | controls, an action overflow control appears at the right side of the virtual navigation bar. You |
| 62 | can touch the control to display the app's actions in the traditional Android menu styling.</p> |
| 63 | |
| 64 | </div> |
| Dirk Dougherty | 6c1c263 | 2015-05-02 16:31:11 -0700 | [diff] [blame] | 65 | <div class="col-7"> |
| Roman Nurik | b99ae73 | 2012-03-06 12:26:15 -0800 | [diff] [blame] | 66 | |
| 67 | <img src="{@docRoot}design/media/compatibility_legacy_apps.png"> |
| 68 | |
| 69 | </div> |
| 70 | </div> |