Skip to content

Commit

Permalink
fix: 🐛 [DSY-1942] adjusting buttons position
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcsouza committed Oct 13, 2020
1 parent a94c309 commit e6f40a4
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions android/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,31 @@
android:id="@+id/nativebutton"
android:layout_width="?sizeHugeXXX"
android:layout_height="wrap_content"
android:text="@string/native_button_label"
android:layout_marginTop="?spacingSmall"
android:layout_marginBottom="?spacingSmall"
app:layout_constraintBottom_toTopOf="@+id/reactNative2button"
android:text="@string/native_button_label"
app:layout_constraintBottom_toTopOf="@+id/reactNative1button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent" />

<Button
android:id="@+id/reactNative1button"
android:layout_width="?sizeHugeXXX"
android:layout_height="wrap_content"
android:text="@string/react_native1_button_label"
android:layout_marginTop="?spacingSmall"
android:layout_marginBottom="?spacingSmall"
app:layout_constraintEnd_toEndOf="@+id/reactNative2button"
app:layout_constraintStart_toStartOf="@+id/reactNative2button"
app:layout_constraintTop_toBottomOf="@+id/reactNative2button" />
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<Button
android:id="@+id/reactNative2button"
android:layout_width="?sizeHugeXXX"
android:layout_height="wrap_content"
android:text="@string/react_native2_button_label"
android:layout_marginTop="?spacingSmall"
android:layout_marginBottom="?spacingSmall"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/nativebutton"
app:layout_constraintStart_toStartOf="@+id/nativebutton"
app:layout_constraintTop_toTopOf="parent" />
android:text="@string/react_native2_button_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/reactNative1button" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit e6f40a4

Please sign in to comment.