kopia lustrzana https://github.com/ryukoposting/Signal-Android
137 wiersze
6.3 KiB
XML
137 wiersze
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
tools:context=".registration.fragments.EnterPhoneNumberFragment"
|
|
tools:viewBindingIgnore="true">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layoutDirection="ltr"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/verify_subheader">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/country_code"
|
|
style="@style/Widget.Signal.TextInputLayout.Registration.Dropdown"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:theme="@style/Signal.ThemeOverlay.TextInputLayout"
|
|
app:errorEnabled="false"
|
|
app:hintEnabled="false">
|
|
|
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:digits="+1234567890"
|
|
android:drawablePadding="-24dp"
|
|
android:hint="@string/Registration_country_code_entry_hint"
|
|
android:imeOptions="actionNext"
|
|
android:maxLength="4"
|
|
android:maxLines="1"
|
|
android:padding="0dp"
|
|
android:singleLine="true"
|
|
tools:text="+1" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/number"
|
|
style="@style/Widget.Signal.TextInputLayout.Registration"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:hint="@string/RegistrationActivity_phone_number_description"
|
|
app:materialThemeOverlay="@style/Signal.ThemeOverlay.TextInputLayout">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
style="@style/Widget.MaterialComponents.TextInputEditText.FilledBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:imeOptions="actionDone"
|
|
android:inputType="phone">
|
|
|
|
<requestFocus />
|
|
</com.google.android.material.textfield.TextInputEditText>
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/verify_header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:text="@string/RegistrationActivity_enter_your_phone_number"
|
|
android:textAppearance="@style/Signal.Text.HeadlineMedium"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar" />
|
|
|
|
<TextView
|
|
android:id="@+id/verify_subheader"
|
|
style="@style/Signal.Text.BodyLarge"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:text="@string/RegistrationActivity_you_will_receive_a_verification_code"
|
|
android:textColor="@color/signal_colorOnSurfaceVariant"
|
|
app:layout_constraintTop_toBottomOf="@+id/verify_header"
|
|
tools:layout_editor_absoluteX="0dp" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/cancel_button"
|
|
style="@style/Signal.Widget.Button.Large.Secondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:text="@android:string/cancel"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
tools:visibility="visible" />
|
|
|
|
<org.thoughtcrime.securesms.util.views.CircularProgressMaterialButton
|
|
android:id="@+id/registerButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:layout_marginBottom="16dp"
|
|
app:circularProgressMaterialButton__label="@string/RegistrationActivity_continue"
|
|
app:layout_constraintBottom_toTopOf="@+id/cancel_button"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:materialThemeOverlay="@style/ThemeOverlay.Signal.CircularProgressIndicator.Tonal" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</ScrollView> |