<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TabHost
android:id="@+id/mytabhost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:background="@drawable/bg_keyboard"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</TabWidget> <FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" > <RelativeLayout
android:id="@+id/tab1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_engchars"
android:id="@+id/keyboard_eng_chars"/>
</RelativeLayout> <RelativeLayout
android:id="@+id/tab2"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_greekchars"
android:id="@+id/keyboard_greek_chars"/>
</RelativeLayout> <RelativeLayout
android:id="@+id/tab3"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_operators"
android:id="@+id/keyboard_operators"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/tab4"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_funcs"
android:id="@+id/keyboard_funcs"/>
</RelativeLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
</RelativeLayout>
上面就是是布局(一个Tab),帮忙看下问题在哪?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TabHost
android:id="@+id/mytabhost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
android:background="@drawable/bg_keyboard"> <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</TabWidget> <FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" > <RelativeLayout
android:id="@+id/tab1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_engchars"
android:id="@+id/keyboard_eng_chars"/>
</RelativeLayout> <RelativeLayout
android:id="@+id/tab2"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_greekchars"
android:id="@+id/keyboard_greek_chars"/>
</RelativeLayout> <RelativeLayout
android:id="@+id/tab3"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_operators"
android:id="@+id/keyboard_operators"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/tab4"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
layout="@layout/layout_keyboard_funcs"
android:id="@+id/keyboard_funcs"/>
</RelativeLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
</RelativeLayout>
上面就是是布局(一个Tab),帮忙看下问题在哪?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货