AndroidAPS/app/src/main/res/layout/activity_smscommunicator_otp.xml

116 lines
4.5 KiB
XML
Raw Normal View History

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" />
<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"
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"
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" />
<info.nightscout.androidaps.utils.ui.SingleClickButton
2021-02-02 20:32:07 +01:00
android:id="@+id/otp_reset"
style="@style/GrayButton"
2020-04-24 12:00:31 +02:00
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
2020-04-24 12:00:31 +02:00
android:layout_marginTop="3dp"
android:layout_marginEnd="10dp"
2020-04-24 12:00:31 +02:00
android:layout_marginBottom="3dp"
android:text="@string/smscommunicator_otp_reset_btn"
android:textColor="?attr/treatmentButton" />
2020-04-24 12:00:31 +02:00
</LinearLayout>
</ScrollView>
</FrameLayout>