【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
listview 下方的tabhost 为何无法显示?
eclipse中预览与实际不一致,如何修改,具体如图和layout代码
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/imglogin1"
android:gravity="top"
android:launchMode="singleInstance" >
<RelativeLayout
android:id="@+id/rlhead"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="@color/red"
android:gravity="left"
android:padding="4dp" >
<Button
android:id="@+id/Cmdcx1"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="@string/Tjxz" />
<Button
android:id="@+id/Cmdcx2"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:text="@string/Back" />
<TextView
android:id="@+id/Zcmx"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/zcpd"
android:textColor="@color/white"
android:textSize="19sp" />
</RelativeLayout>
<ListView
android:id="@+id/Lv"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_above="@android:id/tabhost"
android:layout_alignParentLeft="true"
android:layout_below="@+id/rlhead"
android:divider="#00000000"
android:dividerHeight="5dp"
android:padding="10dp" >
</ListView>
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_gravity="bottom" >
<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="wrap_content" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/tab1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
</LinearLayout>
<LinearLayout
android:id="@+id/tab2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
</LinearLayout>
<LinearLayout
android:id="@+id/tab3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
</RelativeLayout>