From 21aeb5c40906954470156328f9984b7c467bc777 Mon Sep 17 00:00:00 2001 From: Taras Smakula <tarassmakula@gmail.com> Date: Mon, 23 Oct 2023 14:16:57 +0300 Subject: [PATCH] Add checkbox ui --- auth/src/main/res/layout/fragment_validate_email.xml | 11 +++++++++++ auth/src/main/res/values/strings.xml | 1 + 2 files changed, 12 insertions(+) diff --git a/auth/src/main/res/layout/fragment_validate_email.xml b/auth/src/main/res/layout/fragment_validate_email.xml index 5cd7f7b06..48fc0c901 100644 --- a/auth/src/main/res/layout/fragment_validate_email.xml +++ b/auth/src/main/res/layout/fragment_validate_email.xml @@ -109,6 +109,17 @@ app:layout_constraintStart_toEndOf="@id/guidelineCenterVertical" app:layout_constraintTop_toBottomOf="@id/tilEmail" /> + <com.google.android.material.checkbox.MaterialCheckBox + android:id="@+id/cbEmailUpdates" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:checked="true" + android:text="@string/receive_email_updates" + android:textAppearance="@style/body" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/btnSendCode" /> <org.futo.circles.core.view.LoadingButton android:id="@+id/btnValidate" diff --git a/auth/src/main/res/values/strings.xml b/auth/src/main/res/values/strings.xml index 7ee8d7e44..6cbca7f00 100644 --- a/auth/src/main/res/values/strings.xml +++ b/auth/src/main/res/values/strings.xml @@ -153,6 +153,7 @@ Or, think about all of your friends across all of the places you\'ve ever lived. <br/><br/>For example, you might want to create a group for your book club, or your sports team, or your scout troop. <br/><br/>If you want to share with lots of different people who <i>don\'t</i> all know each other, then you should invite those people to follow you in a <b>Circle</b> instead.]]></string> <string name="configure">Configure</string> + <string name="receive_email_updates">Receive email updates</string> <plurals name="days"> <item quantity="one">%1$d day</item> -- GitLab