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>

  • 相关阅读:
    HTTP 缓存图解
    http协议构成整理
    HTTP2.0
    Event Loop
    斐波那契数列
    归并排序
    快速排序
    史上最全前端资源
    Js 将 Date 转化为指定格式的String
    vue-cli webpack全局引入jquery
  • 原文地址:https://www.cnblogs.com/ctriphire/p/2913176.html
Copyright © 2011-2022 走看看