zoukankan      html  css  js  c++  java
  • 让tabgroup在下方显示

    tabGroup,默认情况下,android都是放在顶部的,但在ios里默认是显示在下方的,以下就向大家介绍一个在android里将此tabGroup放在下方的方法

    1:在网站根目录下建立目录  如下所示:

    platform/android/res/layout

    在layout文件夹内添加titanium_tabgroup.xml

    其中titanium_tabgroup.xml里的文件如下所示:

    <?xml version="1.0" encoding="utf-8"?>
    <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="0dp">
    <FrameLayout
    android:id="@android:id/tabcontent"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:padding="0dp"
    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>
    </TabHost>

  • 相关阅读:
    时间加减天数
    时间加减秒数
    什么BOM?
    js 事件基础
    js 九九乘法
    CSS3 动画基础单词语法
    css3 3D转换 基础语法
    css3 2D 转换 基础语法
    js onchange案例
    js之冒泡排序
  • 原文地址:https://www.cnblogs.com/ctriphire/p/2913176.html
Copyright © 2011-2022 走看看