让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>

原文地址:https://www.cnblogs.com/ctriphire/p/2913176.html