FragmentTabHost:没有标签闻名标签空 [英] FragmentTabHost: No tab known for tag null

查看:134
本文介绍了FragmentTabHost:没有标签闻名标签空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在设计师得到此异常:

I am getting this exception in the designer:

Exception raised during rendering: No tab known for tag null

我有完全相同的code,因为这家伙 - <一href="http://stackoverflow.com/questions/15354165/android-fragmenttabhost-no-tab-known-for-tag-null">Android FragmentTabHost:没有标签出名的标签空

I have the same EXACT code as this guy - Android FragmentTabHost : No tab known for tag null

他唯一的回答是使用旧德precated类 - TabHost而不是FragmentTabHost这是我的理解,你需要使用的,而不是...一个

his only answer was "use an older deprecated class" - TabHost instead of FragmentTabHost which is the one that I understood you need to use instead of...

我是一个初学者到Android和去渣,但我是一个程序员多年来在.NET中,我发现它真的很难找到良好的解决方案,即来自显然只有3教程非常基本的问题片段在那里(就像上面说的那个)

I am a beginner to Android and to Java, but i've been a programmer for many years in .NET, and i find it really hard to find good solutions to very basic problems that came from apparently the only 3 tutorials for fragments out there (just like the one stated above)

所以基本上这里是我的问题至今:

So basically here are my questions so far:

  1. 从我了解,到目前为止,实际上使一个菜单,你的Andr​​oid应用程序的唯一办法就是使其与片段一个活动的应用程序,如果这是真的,我应该如何追踪我的片段,如果FragmentTagHost没有完全工作了吗?我发现ActionBarSherlock参考 - 他的最新版本,使用了大量日precated班太

  1. From what i understood so far, the only way to actually make a menu to your Android application is to make it a single Activity app with fragments, if this is true, how should i keep track of my fragments if FragmentTagHost is not fully working yet? I found references for ActionBarSherlock - his latest version is using a lot of deprecated classes too

什么是使用一个活动+片段的最佳实践,和我在哪里可以找到很好的帮助的例子让我去实现我想要使用户界面?

What are the best practices with using a single activity + fragments, and where can i find good helpful examples to get me going to achieve the ui i want to make?

还有没有其他的第三方解决方案,可以帮助沿着像ActionBarSherlock?

Are there other third party solutions that can help along like ActionBarSherlock?

我使用Eclipse ADT,你会推荐一个不同的IDE?

I am using the Eclipse ADT, would you recommend a different IDE?

多谢

PS - 请不要参考我的Andr​​oid开发教程,我一直通他们,他们就像学ABC的,而我需要做的句子,并试图找到良好的来源,我是说,因为我发现很多刚刚已经回答放在这里好问题这里是真正的基本教程,去做到这一点

PS - please don't refer me to the android developer tutorials, i've been thru them, and they are like learning the abc's while i need to make sentences and trying to find good sources for that, i am saying that because i found plenty of good questions on here that were just answered with "here is the really basic tutorial, go do that"

推荐答案

查找SDK的 http://developer.android.com/tool​​s/samples/index.html

在那里,你可以找到FragmentTabs演示这是你需要什么,我以为

There you can find FragmentTabs demo which is what you need, i assume

至于3.是的,有很多不同的解决方案。 previously在PlayStore是不同的UI模式并链接到执行这些com.groidify.uipatterns的开源项目了良好的应用程序。希望你可以通过谷歌的地方找到它,如现在不可用

As for 3. Yes, there are a lot of different solutions. Previously in PlayStore was a good app with different UI patterns and links to the opensource projects implementing them com.groidify.uipatterns. Hope you can find it via google somewhere such as now it is not available

这篇关于FragmentTabHost:没有标签闻名标签空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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