手机
当前位置:查字典教程网 >编程开发 >安卓软件开发 >Android 将TabHost放在最下方显示
Android 将TabHost放在最下方显示
摘要:布局文件:

布局文件:

<?xml version="1.0" encoding="utf-8"?> <TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="/apk/res/android"> <LinearLayout android:orientation="vertical" android:id="@id/ll_main_tab" android:layout_width="fill_parent" android:layout_height="fill_parent"> <FrameLayout android:gravity="center" android:id="@android:id/tabcontent" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0"> <RelativeLayout android:id="@+id/tabFirst" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <AnalogClock android:id="@+id/widget31" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"> </AnalogClock> </RelativeLayout> <RelativeLayout android:id="@+id/tabSecond" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <DigitalClock android:layout_centerInParent="true" android:layout_width="wrap_content" android:layout_height="wrap_content"> </DigitalClock> </RelativeLayout> </FrameLayout> <TabWidget android:id="@android:id/tabs" android:background="@drawable/tab_btn_bg_normal" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </LinearLayout> </TabHost>

【Android 将TabHost放在最下方显示】相关文章:

Android开场动画实例类Java代码

Android 简单的照相机程序的实例代码

Android加载图片内存溢出问题解决方法

Android自定义控件之自定义属性

在Android中访问WebService接口的方法

android 引导界面的实现方法

Android调用google地图生成路线图实现代码

Android实现语音识别代码

android实现横屏的代码及思路

Android Mms之:深入理解对话列表管理

精品推荐
分类导航