这里是我的xml:Android的布局问题
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
<!-- -->
/>
<Button
<!-- -->
/>
</RelativeLayout>
<TextView
<!-- -->
/>
<TextView
<!-- -->
/>
<Gallery
<!-- -->
/>
<TextView
<!-- -->
/>
<TextView
<!-- -->
/>
<TextView
<!-- -->
/>
<TextView
<!-- -->
/>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="bottom"
>
<Button
<!-- -->
/>
<Button
<!-- -->
/>
</RelativeLayout>
</LinearLayout>
如何让我的最后RelativeLayout的是在屏幕的底部?我尝试了layout_gravity属性,但是没有任何效果。
试试layout_alignwithparent – Phonon 2011-03-07 19:17:21