- 1、本文档共24页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ActionBarCompat TutorialPart 1-Prepare and Setup http://www.mobiletuts.mehhttp://www.mobiletuts.mettp://www.mobiletuts.meMobiletuts.me@Mobiletuts.me mobiletuts.me@Action BarThe action bar is a window feature that identifies the user location, and provides user actions and navigation modes. Using the action bar offers your users a familiar interface across applications that the system gracefully adapts for different screen configurations.Figure 1. An action bar that includes the [1] app icon, [2] two action items, and [3] action overflow.The action bar provides several key functions:Provides a dedicated space for giving your app an identity and indicating the users location in the app.Makes important actions prominent and accessible in a predictable way (such as Search).Supports consistent navigation and view switching within apps (with tabs or drop-down lists).Mobiletuts.me mobiletuts.me@ActionBarActivity or Activity?If you want to set title , logo, navigation modes for an ActionBar, you need to get a reference to ActionBar.With sdk level higher than 11 (=11), you can directly call getActionBar() in an Activity to fetch a reference of ActionBar which you can configure.For sdk level lower than 11 (=10), however, getActionBar is not supported in an Activity. Mobiletuts.me mobiletuts.me@ActionBarActivity or Activity?Google Android team released a new backward-compatible Action Bar implementation called ActionBarCompat that‘s part of the Support Library r18 during I/O 2013 . The ActionBarCompat APIs let you build the essential Action Bar design pattern into your app, with broad compatibility back to Android 2.1 (sdk7).ActionBarActivity (android.support.v7.app.ActionBarActivity) and ActionBar (android.support.v7.app.ActionBar) was introduced within ActionBarCompat, which can be used essentially as same as Activity with ActionBar features in sdk levels higher than 11.Mobiletuts.me mobiletuts.me@ActionBarActivity for Backward CompatibilityTherefore use ActionBar
您可能关注的文档
- 《4-2静力法作简支梁影响线.ppt
- 《4-WS--DevelopingAdvancedWebServicesApp.ppt
- 《4-Android生命周期.ppt
- 《4-3地域联系的主要方式.ppt
- 《4.1逐步完善的交通运输网》课件人教新课标地理八年级上册1.ppt
- 《4-5,苏武、魏晋士人.ppt
- 《4.3物质跨膜运输的方式.ppt
- 《4.6三年级上册语文园地一2013.9.9.ppt
- 《4.成功一定有方法.ppt
- 《3走遍天下书为侣》完美版.ppt
- 计算机应用基础教程(全套课件).pdf
- 机械设计基础全套课件.pdf
- 乐理视唱练耳中职课件完整全套教学课件.pdf
- 人工智能云平台部署与开发(微课版) 课件全套 项目1--7 云容器和应用开发入门--- AI云容器的开发.pdf
- 社会研究方法-全套.pdf
- 经济法基础 课件全套 模块1--5 走进经济法 --- 市场规制法.pdf
- 教师职业道德与教育法律法规课件完整全套教学课件.pdf
- 北京市育才学校2024-2025学年七年级上学期期中考试数学试卷(word版,含答案).docx
- 北京市清华大学附属中学朝阳学校2024-2025学年高二上学期期中考试数学试卷(word版,含答案).docx
- 北京市平谷五中2024-2025学年九年级上学期期中考试道德与法治试卷.pdf
文档评论(0)