1

现在我遇到了一个非常烦人的问题。我有一个ScrollView和里面ScrollView我有一个TabHost和里面我有一个选项卡MapView,问题是使用该配置MapView填充整个屏幕而忽略选项卡,我想要的只是填充选项卡下方的空白空间!

我有这样的事情:

<ScrollView  xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context=".MainActivity" 
    android:id="@+id/scroll"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true" > 
<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical" 
    android:background="@color/white" >

<TabHost ..... >

<MapView ..... />

</TabHost>

</LinearLayout>
</ScrollView>

如果我删除ScrollView一切正常,但在这里删除它不是一个选项!

4

0 回答 0