IMOカスタマイズされたダイアログを実行し、TableLayoutを使用して要素を配置しようとします。このようにして、ボタンを配置し、タイトルの属性stretchcolumnを使用して、画面の横にあるボタンを押すことができます。(私があなたをよく理解している場合)
代替テキストhttp://img801.imageshack.us/img801/4372/tablelayout.png
このxmlの例を使用すると、機能し、画面サイズ/回転から独立しているはずです。
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:stretchColumns="1">
<TableRow android:id="@+id/TableRow01" android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button android:text="Button01" android:id="@+id/Button01"
android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
<TextView android:text="This is your title" android:id="@+id/TextView01"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" ></TextView>
<Button android:text="Button02" android:id="@+id/Button02"
android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</TableRow>
</TableLayout>