Android版的Eclipse缺少getSupportedFragmentManager和getChildFragmentManager [英] Eclipse Android missing getSupportedFragmentManager and getChildFragmentManager

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

问题描述

您好我尝试使用了Android支持的lib V4以及V13,而不是Android应用程序的lib但是Eclipse仍然不能识别getSupportedFragmentManager和getChildFragmentManager功能。是否有我需要为了来回Eclipse能够识别这两种功能的步骤?
目前使用的与最新的Andr​​oid SDK中的Eclipse红月,瞄准17 API平台。

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里面的时候dialogfragment。

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

先谢谢了。

推荐答案

我发现为什么日食着承认这两个函数的原因,这是因为虽然getSupportFragmentManager是支持的LIB V13可用,但两者的功能仅在支持的lib V4可这奇怪的是V13考虑更高,包括V4。也许他们在V13出于某种原因删除getChildFragmentManager功能。发现使用此处jd.benow.ca提供的软件搜索上一流他们居住和中提琴的功能时,V13居然没有getChildFragmentManager在任何可用的类,它的唯一的V4存在,所以现在,如果getChildFragmentManager需要只需使用支持的lib V4现在或找到一种方法同时使用支持的lib v4和13快乐编程使用支持的lib 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.

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

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