これは、Eclipse がエディターに表示するものです。
http://i.stack.imgur.com/tjwu9.png
スマホで実行するとこんな感じ。
http://i.stack.imgur.com/V6NG5.png
これは私が使用しているコードです。
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="bottom" >
<Button
android:id="@+id/buttonLocation"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/settings_button"
android:text="Settings" android:textStyle="bold" android:textSize="24dp" android:textColor="#000000" android:gravity="center_horizontal"/>
</LinearLayout>
中央に配置する必要があります。この問題を解決するにはどうすればよいですか?