android - 如何在Android 2.3 GingerBread 中使用 fragment ?

标签 android fragment compatibility android-2.3-gingerbread

我正在开发一个必须在 Android 2.3.3 以上版本上运行的 android 应用程序。是否可以在此应用程序上使用 fragment ,因为 hive 之前的版本不支持 fragment ?如果可能怎么办?

最佳答案

使用 fragment V4

android-support-v4.jar 在 ref-lib 文件夹中可用

如果不可用,请添加自

../android-sdks/extras/android-support-v4.jar

Extents fragmentimport android.support.v4.Fragment 写入代码**

希望对你有帮助

关于android - 如何在Android 2.3 GingerBread 中使用 fragment ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21772243/

相关文章:

android - Volley 错误 : Repeating a request when verbose logging is enabled fails

android - 5000 毫秒后显示第二个警报对话框

android - Cordova 构建失败,缺少 SDK 平台组件

android - 除了嵌套 fragment 之外,还有其他选择吗?

compatibility - OStatus、pump.io 和 ActivityPub 之间有什么关系?

android - 如何使用 Retrofit 解析 JSON 数组?

java - 如何在 ListView 中实现删除按钮并从数据库中删除?

java - 从 Activity 调用 fragment 方法

windows - 为什么 visual studio 2012 不能安装在 windows xp 中?

rest - 强制 web api 消费者接受响应中的新字段