2020-04-24 12:00:31 +02:00
|
|
|
<FrameLayout 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"
|
|
|
|
tools:context=".plugins.general.smsCommunicator.activities.SmsCommunicatorOtpActivity">
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent">
|
|
|
|
|
|
|
|
<LinearLayout
|
2021-02-02 20:32:07 +01:00
|
|
|
android:id="@+id/otp_layout"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/section_header_label"
|
|
|
|
android:text="@string/smscommunicator_otp_step1_install_header" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5sp"
|
|
|
|
android:layout_marginBottom="5sp"
|
|
|
|
android:paddingStart="15sp"
|
|
|
|
android:paddingEnd="15sp"
|
|
|
|
android:text="@string/smscommunicator_otp_install_info" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/section_header_label"
|
|
|
|
android:text="@string/smscommunicator_otp_step2_provisioning_header" />
|
|
|
|
|
|
|
|
<ImageView
|
2021-02-02 20:32:07 +01:00
|
|
|
android:id="@+id/otp_provisioning"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-04-19 10:36:10 +02:00
|
|
|
android:contentDescription="@string/a11y_otp_qr_code"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:scaleType="center" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/warning_label"
|
|
|
|
android:text="" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/section_header_label"
|
|
|
|
android:text="@string/smscommunicator_otp_step3_test_header" />
|
|
|
|
|
2020-09-09 11:53:39 +02:00
|
|
|
<TextView
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="5sp"
|
|
|
|
android:layout_marginBottom="5sp"
|
|
|
|
android:paddingStart="15sp"
|
|
|
|
android:paddingEnd="15sp"
|
|
|
|
android:text="@string/smscommunicator_code_verify_info" />
|
|
|
|
|
2020-04-24 12:00:31 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:paddingEnd="5dp"
|
2020-09-09 11:53:39 +02:00
|
|
|
android:text="@string/smscommunicator_code_verify_label" />
|
2020-04-24 12:00:31 +02:00
|
|
|
|
|
|
|
<EditText
|
2021-02-02 20:32:07 +01:00
|
|
|
android:id="@+id/otp_verify_edit"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_width="140sp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-09-09 11:53:39 +02:00
|
|
|
android:hint="@string/smscommunicator_code_verify_hint"
|
2022-04-19 10:36:10 +02:00
|
|
|
android:importantForAutofill="no"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:inputType="number"
|
|
|
|
android:maxLength="12"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textSize="19sp"
|
|
|
|
tools:ignore="HardcodedText" />
|
|
|
|
|
|
|
|
<TextView
|
2021-02-02 20:32:07 +01:00
|
|
|
android:id="@+id/otp_verify_label"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:paddingEnd="5dp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/section_header_label"
|
|
|
|
android:text="@string/smscommunicator_otp_reset_header" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/warning_label"
|
|
|
|
android:text="@string/smscommunicator_otp_reset_warning" />
|
|
|
|
|
2020-08-18 15:09:14 +02:00
|
|
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
2021-02-02 20:32:07 +01:00
|
|
|
android:id="@+id/otp_reset"
|
2022-04-18 18:24:57 +02:00
|
|
|
style="@style/GrayButton"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-04-17 19:48:41 +02:00
|
|
|
android:layout_marginStart="10dp"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_marginTop="3dp"
|
2022-04-17 19:48:41 +02:00
|
|
|
android:layout_marginEnd="10dp"
|
2020-04-24 12:00:31 +02:00
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:text="@string/smscommunicator_otp_reset_btn"
|
2022-03-15 13:24:51 +01:00
|
|
|
android:textColor="?attr/treatmentButton" />
|
2020-04-24 12:00:31 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</FrameLayout>
|