里面的片段的Andr​​oid TabHost [英] Android TabHost inside Fragment

查看:145
本文介绍了里面的片段的Andr​​oid TabHost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android应用程序,我已经使用的Andr​​oid FragmentPager标签<一href="http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.html">example从developer.android.com),本例中使用的片段为标签的内容,现在我想将里面的那些片段之一tabHost,我已经尽了最大努力,但在第二个选项卡主机不显示的内容,我可以看到选项卡头但没有任何内容,我想使​​用意图作为TabContent。我不认为我有任何相关的code,张贴在这里,但如果你需要我可以在这里发布。

I am working on an Android App and I have used android FragmentPager tabs example from developer.android.com), this example uses fragments for tabs contents, Now I want to place a tabHost inside one of those fragments, I have tried my best but the second tab hosts are not showing the content, I can see tab headers but no content, I am trying to use Intents as TabContent. I don't think I have any relevant code to post here, but If you need I can post it here.

的层次是:FragmentActivity-> TabHost-> Fragments-> TabHost - >(故意或片段,这是有问题的区域)

The hierarchy is: FragmentActivity->TabHost->Fragments->TabHost->(Intent or Fragment, this is the problem area)

任何建议将AP preciated。

Any Suggestion would be appreciated.

推荐答案

你见过吗?我引用了几次,应该帮助你。

Have you seen this? I've referenced it a few times, should help you out.

http://thepseudo$c$cr.word$p$pss.com/2011/10/04/android-tabs-the-fragment-way/

这篇关于里面的片段的Andr​​oid TabHost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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