ZNDS智能电视网 推荐当贝市场

TV应用下载 / 资源分享区

软件下载 | 游戏 | 讨论 | 电视计算器

综合交流 / 评测 / 活动区

交流区 | 测硬件 | 网站活动 | Z币中心

新手入门 / 进阶 / 社区互助

新手 | 你问我答 | 免费刷机救砖 | ROM固件

查看: 14753|回复: 0
上一主题 下一主题
[案例]

listview 中内容覆盖了屏幕底部 Tab选项

[复制链接]
跳转到指定楼层
楼主
发表于 2013-8-28 16:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
2<TabHost android:id="@+id/tabhost" xmlns:android="http://schemas.android.com/apk/res/android"   
    android:orientation="vertical"   
     android:layout_width="fill_parent"   
    android:layout_height="fill_parent"   
   
    >   
    <RelativeLayout   
        android:orientation="vertical"   
        android:layout_width="fill_parent"   
        android:layout_height="fill_parent"   
   
        >   
        <TabWidget android:id="@android:id/tabs"   
            android:layout_width="fill_parent"   
             android:layout_height="wrap_content"   
            android:layout_alignParentBOTTom="true"   
   
   
            />   
        <FrameLayout android:id="@android:id/tabcontent"   
            android:layout_width="fill_parent"   
             android:layout_height="fill_parent"   
   
             >   
            <LinearLayout android:id="@+id/tab1"   
                android:layout_width="fill_parent"   
                android:layout_height="fill_parent"   
   
               android:orientation="vertical">   
   
   
                                       
                                        <ListView   
                                android:id="@+id/datalist"   
                                android:layout_width="fill_parent"   
                                android:stackFromBottom="true"   
                                android:transcriptMode="alwaysScroll"   
                                android:layout_height="wrap_content"/>   
                     
   
   
   
            </LinearLayout>   
            <LinearLayout android:id="@+id/tab2"   
                android:layout_width="fill_parent"   
                android:layout_height="fill_parent"   
                android:orientation="vertical">   
                                 
                            <ListView   
                                android:id="@+id/xmxxdatalist"   
                                android:transcriptMode="alwaysScroll"   
                                android:stackFromBottom="true"   
                                android:layout_width="fill_parent"   
                                android:layout_height="wrap_content"/>   
   
            </LinearLayout>   
                           
   
            <LinearLayout android:id="@+id/tab3"   
                android:layout_width="fill_parent"   
                android:layout_height="fill_parent"   
                                  android:layout_weight="1"   
                android:orientation="vertical">   
   
                <ListView   
   
                                android:id="@+id/zxxxdatalist"   
                           
                                android:transcriptMode="alwaysScroll"   
                                android:layout_width="fill_parent"   
                           
                  
                                android:layout_height="wrap_content"/>   
   
   
   
            </LinearLayout>   
            <LinearLayout android:id="@+id/tab4"   
                android:layout_width="fill_parent"   
                android:layout_height="fill_parent"   
   
                android:orientation="vertical">   
   
                <ListView   
                                android:id="@+id/qtxxdatalist"   
                                android:transcriptMode="alwaysScroll"   
                                   
                           
                                android:layout_width="fill_parent"   
                                   
                                android:layout_height="wrap_content"/>   
   
            </LinearLayout>   
        </FrameLayout>   
    </RelativeLayout>   
</TabHost>   
   
悲剧的效果如下:   
   
     
   
   
   

上一篇:Android腾讯微薄客户端开发十三:提及篇(与我有关的微博)
下一篇:Android对话框dialog大全(代码直接可用).docx
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

Archiver|新帖|标签|软件|Sitemap|ZNDS智能电视网 ( 苏ICP备2023012627号 )

网络信息服务信用承诺书 | 增值电信业务经营许可证:苏B2-20221768 丨 苏公网安备 32011402011373号

GMT+8, 2025-7-31 00:25 , Processed in 0.087177 second(s), 14 queries , Redis On.

Powered by Discuz!

监督举报:report#znds.com (请将#替换为@)

© 2007-2025 ZNDS.Com

快速回复 返回顶部 返回列表