Eclipse Android缺少getSupportFragmentManager和getChildFragmentManager [英] Eclipse Android missing getSupportFragmentManager and getChildFragmentManager

查看:178
本文介绍了Eclipse Android缺少getSupportFragmentManager和getChildFragmentManager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用android支持的库v4和v13而不是android应用库,但是eclipse仍然无法识别getSupportedFragmentManager和getChildFragmentManager函数。为了使日食能够识别这两个功能,我是否需要采取任何步骤?
当前将Eclipse luna与最新的android sdk一起使用,目标是api 17平台。

Hi I tried using the android supported lib v4 as well as v13 instead of android app lib but eclipse still cannot recognize the getSupportedFragmentManager and getChildFragmentManager functions. Are there any steps I need to take in order fro eclipse to recognize both functions? Currently using Eclipse luna with latest android sdk, targeting api 17 platform.

我需要这两个函数来查看为什么应用崩溃的原因是找不到ID的视图? ?在对话框片段中使用viewpager时。

I need either function to see why the app crashes with no view found for id ?? when using viewpager inside dialogfragment.

在此先感谢。

推荐答案

我发现了eclipse无法识别这两个功能的原因,这是因为尽管getSupportFragmentManager在受支持的lib v13中可用,但两个功能仅在受支持的lib v4中可用,考虑到v13更高且包含v4,这很奇怪。也许他们出于某种原因在v13中删除了getChildFragmentManager函数。在使用jd.benow.ca此处提供的软件搜索功能所在的类和中提琴时发现,v13实际上在任何可用类中都没有getChildFragmentManager,并且仅在v4中存在,因此,如果只需立即使用支持库v4或找到一种同时使用支持库v4和13的方法,就需要getChildFragmentManager。使用支持库v4和v13的家伙进行快乐的编程。

I found the reason why eclipse cant recognize both functions and that is because while getSupportFragmentManager is available in supported lib v13 but both function are only available in support lib v4 which is weird considering v13 is higher and v4 is included. perhaps they removed getChildFragmentManager function in v13 for some reason. Discovered when using the software provided here jd.benow.ca to search for the function on which class they reside and viola, v13 actually don't have getChildFragmentManager in any of the classes available and it's only existed in v4, so for now, if getChildFragmentManager is needed just use support lib v4 for now or find a way to use both support lib v4 and 13. happy programming using support lib v4 and v13 guys.

这篇关于Eclipse Android缺少getSupportFragmentManager和getChildFragmentManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆