4つのボタンでレイアウトを作成しようとしていますが、上のボタンが中央に配置されています。中央の2つのボタンは、左右に同じ行に表示されます。だから、サークルのように見えるでしょう。 中央の2つのボタンを水平のLinearLayoutに配置します。最初のボタンの重力を左に、2番目のボタンを右に設定します。中央に設定されたボタンは、右に設定されていないボタンの直後に描画されます。私はLinarlayoutのレイアウト幅を親を満たすように設定しました。 Android:LinearLayoutの右側にボタンを描画することができません なぜボタンが描画されないのですか?Android:LinearLayoutの右側に描画されるボタンを取得できません
XMLコード
<ImageButton android:id="@+id/bAbout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/about"
android:layout_gravity="center"
/>
<LinearLayout android:id="@+id/mainLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageButton android:id="@+id/bVedio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/about"
android:layout_gravity="left"
/>
<ImageButton android:id="@+id/bBlog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/about"
android:layout_gravity="right"
/>
</LinearLayout>