左側のボタンと右側のレイアウトの端の間のスペースを埋めるためにTextViewを作成しようとしています。
<TextView
android:id="@+id/welcomeHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_toRightOf="@+id/setInfusionReminder"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="Welcome!" />
しかし、私がエディターで見ているものはandroid:layout_marginRight
、左側に適用されています。最終結果は、左側に40dpのマージン、右側に0のマージンになります。