0
で複数のImageButtonsを揃える:アンドロイド - 私は私のAndroidアプリケーションでは、次のレイアウトを作成しようとしていますRelativeLayout
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@color/colorPrimary" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@android:color/white" />
</LinearLayout>
:
私は2つの別々のレイアウトを持っているために、このコードを持っています一番下のレイアウトはImageButton
の複数のページがあるので、ViewPager
になります。私の質問は、どのようにボタンを各レイアウト/フラグメントに完全に合わせることができますか?