当前位置:编程学习 > wap >>

Tabhost 嵌套问题

我用tabhost装了4个activity。每个activity的布局文件如下:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mytabhost" 
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent">
<!-- 注意FrameLayout\TabWidget标签的位置-->
<include  layout="@layout/top_main" />
<TabWidget android:id="@android:id/tabs"
    android:layout_width="fill_parent"
     android:layout_height="wrap_content"/>
<FrameLayout android:id="@android:id/tabcontent"
android:layout_weight="1" 
android:layout_width="fill_parent"
android:layout_height="0dp" >
<include android:id="@+id/xianlu" layout="@layout/layout_xianlu" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
<include android:id="@+id/jiudian" layout="@layout/layout_jiudian" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
<include android:id="@+id/jipiao" layout="@layout/layout_jipiao" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
<include android:id="@+id/qianzheng" layout="@layout/layout_qianzheng" android:layout_width="fill_parent" android:layout_height="fill_parent"/>
</FrameLayout>
</LinearLayout>
</TabHost>


就是不显示。
怎么办呢? java tabhost layout 布局 android --------------------编程问答-------------------- 一般手机都能显示。有些比如魅族就不能显示。这是最蛋疼的啊!!!! --------------------编程问答-------------------- 不要沉
补充:移动开发 ,  Android
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,