一日中検索したところ、貧弱な解決策を思いついたと思います。
私は3つのImageButtonを画面の右側に配置します。 I以下のコードでandroid can can android:重力しますか?
は、ユーザーが、彼らはこの位置権を持っていないであろう大きな画面を持っている場合、私はしたいが、
結果を得る
中心ちょうど中心位置を超えていませんか..?
私は一日中android:gravity
を試しましたが、私はそれを使ってできることはすべて、 の3つのボタンを非常にきれいにすることです。
私は3つのボタンを常に画像の上にある の位置にとどめるようにする必要があります。 私はhdpi、mdpi、xhdpiフォルダに3つの異なるサイズのボタンイメージを持っています。
<RelativeLayout
android:id="@+id/rightRelativeLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<ImageButton
android:id="@+id/btn_A"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:text="A"
android:src="@drawable/drawer_1"
android:background="@android:color/transparent"
android:layout_alignParentRight="true"
/>
<ImageButton
android:id="@+id/btn_B"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="B"
android:src="@drawable/drawer_1"
android:background="@android:color/transparent"
android:layout_alignParentRight="true"
android:layout_below="@+id/btn_A"
/>
<ImageButton
android:id="@+id/btn_C"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="C"
android:src="@drawable/drawer_1"
android:background="@android:color/transparent"
android:layout_alignParentRight="true"
android:layout_below="@+id/btn_B"
/>
</RelativeLayout>
右側に配置された3つのボタンと、もちろん私の娘の写真。
[アンドロイドの可能な複製] RelativeLayoutを配置するのにlayout_weightを使用できますか?](http://stackoverflow.com/questions/6428747/android-can-i-use-layout-weight-to-position-relativelayout) – Erik