我想让一个button永远在界面的最下方,不随着上方内容的缩短而移动,请问这个应该怎么用,查了很多,这个都起不了作用没分了 不好意思,

解决方案 »

  1.   

    使用相对布局
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" > <Button
      android:id="@+id/edit"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_alignParentRight="true"
      android:text="edit" />
    </RelativeLayout>