【发布时间】:2014-11-07 18:24:49
【问题描述】:
这是我现在的代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/tablet_locations_fragment_fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/tablet_locations_fragment_locations_fragment_list_container"
android:layout_width="match_parent"
android:layout_height="90dp" />
</LinearLayout>
我想很明显,我希望底部框架布局的高度为 90dp,而上部框架布局占据其余空间,但目前,上部框架布局占据了所有屏幕高度。我怎样才能解决这个问题?我尝试将 layout_height="wrap_content" 用于上框架布局,但它没有改变任何东西。
【问题讨论】:
标签: android android-linearlayout android-framelayout