如何显示卡在底部而不是在顶部? [英] How to show tabs At Bottom rather then at top?

查看:111
本文介绍了如何显示卡在底部而不是在顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我米有下面的画面,

I m having following screen,

我使用的关注code键使布局以显示tabhost和标签控件

I am using Following code to make Layout to show tabhost and tab widget

我要放置标签的底部。 请告诉如何做到这一点。

I want to place the tabs at bottom . Please tell how to do this.

推荐答案

嘿,我做这个使用下面的code:

Hey I've done this using following code:

<LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="5dp">

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:padding="5dp"
        android:layout_weight="1"/>

    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="0"/>

</LinearLayout>

这篇关于如何显示卡在底部而不是在顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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