当前位置: 首页 > news >正文

wordpress移动端导航百度seo软件曝光行者seo

wordpress移动端导航,百度seo软件曝光行者seo,seo站长工具箱,wordpress 打包app本文是Android开发官网 Android培训的中文翻译,限于译者水平有限,便于大家指正,采用中英文对照风格 更多已翻译内容请见 Android培训翻译_目录 This lesson teaches you to 这节课教你: Set Up Your Project With the Support Library 在你的…

本文是Android开发官网 Android培训的中文翻译,限于译者水平有限,便于大家指正,采用中英文对照风格

更多已翻译内容请见 Android培训翻译_目录


 

This lesson teaches you to
这节课教你:

  1. Set Up Your Project With the Support Library
    在你的项目中安装支持库
  2. Import the Support Library APIs
    导入支持库API

You should also read
你该看看

  • Support Library
    支持库

The Android Support Library provides a JAR file with an API library that allow you to use some of the more recent Android APIs in your app while running on earlier versions of Android. For instance, the Support Library provides a version of the Fragment APIs that you can use on Android 1.6 (API level 4) and higher.
Android支持库提供了一个JAR文件的API库,使你用最新的API开发的应用程序能在早期版本的Android上运行。例如,支持库提供了Fragment API的一个版本,你可以使用在早期的Android1.6 ( API 4级)或更高版本上。

 

This lesson shows how to set up your app to use the Support Library in order to use fragments to build a dynamic app UI.
这节课说明如何配置你的应用程序使用的支持库,以便用fragment构建一个动态的应用程序UI。

 

Set Up Your Project With the Support Library
在你的项目中设置支持库


Figure 1. The Android SDK Manager with the Android Support package selected.
图1. 在Android SDK管理器中选择 Android支持库

 

To set up your project: 设置你的项目

  1. Downlad the Android Support package using the SDK Manager
    使用SDK管理器下载Android支持包
  2. Create a libs directory at the top level of your Android project.
    在你的Android项目根文件下创建libs文件夹
  3. Locate the JAR file for the library you want to use and copy it into the libs/directory.
    找到你要使用的Jar库文件,复制到 libs/ 文件夹下。

    For example, the library that supports API level 4 and up is located at<sdk>/extras/android/support/v4/android-support-v4.jar.
    例如,支持API 4级的库的位置为: <sdk>/extras/android/support/v4/android-support-v4.jar。

  4. Update your manifest file to set the minimum API level to 4and the target API level to the latest release:
    更新你的manifest文件设置最小API 级别为4,并且将目标API 级别设置为最新发布版
    <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="16" />

 

Import the Support Library APIs
导入支持库API


 

The Support Library includes a variety of APIs that were either added in recent versions of Android or don't exist in the platform at all and merely provide additional support to you when developing specific application features.
支持库包含各种API,包括最新版本Android中添加API的或是平台上根本不存在而只是开发特别功能才提供的额外API。

 

You can find all the API reference documentation for the Support Library in the platform docs at android.support.v4.*.
这里你可以找到所有的支持库API参考文档:android.support.v4.*。

 

Warning: To be sure that you don't accidentally use new APIs on an older system version, be certain that you import the Fragment class and related APIs from the android.support.v4.apppackage:
警告:请确认,别不小心在一个旧的系统版本上使用新的API,确认你导入的fragment类和相关API来自 android.support.v4.app 包。

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
...

 

When creating an activity that hosts fragments while using the Support Library, you must also extend the FragmentActivity class instead of the traditional Activity class. You'll see sample code for the fragment and activity in the next lesson.
当你使用支持库的创建了包含Fragment的Activity,你必须同时继承 FragmentActivity 类,而不是普通的 Activity 类。下节课你将会看到fragment和activity的示例代码。

转载于:https://www.cnblogs.com/stonesea/archive/2012/08/21/using-the-support-library.html

http://www.lbrq.cn/news/2587537.html

相关文章:

  • 怎么找做网站平台公司龙岗网站建设公司
  • 江阴做网站哪家好百度关键词排名点击器
  • 庞各庄网站建设公司想做游戏推广怎么找游戏公司
  • 官网网站设计网站ui设计
  • 做全网影视网站的风险app注册推广
  • 四方坪网站建设代写软文公司
  • 单页网站作用是什么新的营销方式有哪些
  • 深圳市建设科技促进中心网站seo网站优化软件
  • 动画设计师是干什么的seo包年优化费用
  • 网站着陆页有多少个今日头条官网登录入口
  • 网站做下子压缩文件的链接网站推广互联网推广
  • 沁阳企业自助建站谷歌搜索引擎google
  • 做网站推广的 什么是开户友情链接的检查方法
  • 开发商城系统app东莞搜索网络优化
  • 和什么人合作做游戏视频网站bt磁力兔子引擎
  • 郑州的做网站公司宁波网站推广专业服务
  • web浏览器阻止activex控件怎么办seo是怎么优化上去
  • 如何加强省市级门户网站的建设视频优化是什么意思
  • 杭州市做网站新闻热点事件2024最新
  • 怎么备份wordpress网站近期新闻热点事件简短
  • 做网站用到哪些软件互联网营销师证书查询入口
  • 网站建设锚点链接网页设计html代码大全
  • 怎样做违法网站怎样在百度上免费建网站
  • 二次开发怎么弄seo有名气的优化公司
  • 建立网站和小程序需要多少钱落实20条优化措施
  • 网站的建设要多少钱永久免费域名申请
  • 公司建设网站网络营销推广公司名称
  • 辛集专业网站建设济南优化网页
  • 只做app不做网站可以吗seo优化的主要内容
  • wordpress导航页seo优化按天扣费
  • Linux—yum仓库及NFS网络共享服务
  • [特殊字符]️ 整个键盘控制无人机系统框架
  • 从物理扇区到路径访问:Linux文件抽象的全景解析
  • Qt 自动无法加载数据库为空
  • 智慧社区(六)——社区居民人脸识别功能实现详解:从腾讯 API 集成到模拟验证
  • Baumer工业相机堡盟工业相机如何通过YoloV8深度学习模型实现各类垃圾的分类检测识别(C#代码UI界面版)