【发布时间】:2012-06-02 09:53:54
【问题描述】:
我需要在relativelayout 的底部放置一个线性布局,它是xml 中最顶层的父级。我怎样才能做到这一点?
请帮帮我。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
android:orientation="vertical" >
<RelativeLayout ....... <<--- this should occupy total available space
</Relativelayout
<Linearlayout ....... <<-- this should place at bottom always with height 50dp
</LineaLayout>
</ReltiveLayout>
【问题讨论】:
-
只是一个提示:在发布问题之前,请做一些谷歌搜索或检查类似的问题。
标签: android android-layout android-relativelayout android-linearlayout