我的界面看起来是这样的: http://i.stack.imgur.com/zADUL.png拉伸的FrameLayout到可视屏幕
有没有什么简单的解决方案,它可以帮助我伸展的FrameLayout到可视屏幕?我试图设置fillViewport和wrap_content tabcontent子项,但它没有帮助。
我的界面看起来是这样的: http://i.stack.imgur.com/zADUL.png拉伸的FrameLayout到可视屏幕
有没有什么简单的解决方案,它可以帮助我伸展的FrameLayout到可视屏幕?我试图设置fillViewport和wrap_content tabcontent子项,但它没有帮助。
试试这个:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Form" >
<RelativeLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:background="#cccccc" >
</RelativeLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/footer"
android:layout_below="@+id/header"
android:background="#ff0000" >
</FrameLayout>
<RelativeLayout
android:id="@+id/footer"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:background="#cccccc" >
</RelativeLayout>
</RelativeLayout>
感谢。
请参阅我为您的问题发布的解决方案。 –