Skip to content

Commit

Permalink
Fix button overlap meme
Browse files Browse the repository at this point in the history
  • Loading branch information
ForceTower committed Aug 20, 2024
1 parent 6413183 commit 6d4be33
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/src/main/res/layout/fragment_service_account_overview.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
app:layout_constraintTop_toBottomOf="@id/linked_email_value"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
tools:visibility="gone"/>
tools:visibility="visible"/>

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_create_passkey"
Expand All @@ -237,6 +237,13 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>

<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_top_buttons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="btn_create_passkey,btn_add_email"/>

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_why"
android:layout_width="match_parent"
Expand All @@ -247,7 +254,7 @@
android:text="@string/service_account_create_reasons"
android:textAllCaps="false"
app:goneIf="@{viewModel.user.email != null}"
app:layout_constraintTop_toBottomOf="@id/btn_create_passkey"
app:layout_constraintTop_toBottomOf="@id/barrier_top_buttons"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>

Expand All @@ -256,6 +263,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:goneUnless="@{viewModel.user.email != null}"
tools:visibility="gone"
app:constraint_referenced_ids="btn_create_passkey,linked_email_label,linked_email_value,verified_container"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
Expand Down

0 comments on commit 6d4be33

Please sign in to comment.