Fix country code width on account deletion screen.

This commit is contained in:
Alex Hart 2020-12-09 14:09:21 -04:00
parent 5d4922ed8d
commit ffc0a230be
2 changed files with 40 additions and 2 deletions

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="11dp"
android:paddingEnd="11dp">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:src="@drawable/ic_add_white_original_24dp"
android:tint="@color/core_grey_60"
android:contentDescription="+"
tools:ignore="HardcodedText" />
<EditText
android:id="@+id/input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="7dp"
android:paddingBottom="16dp"
android:background="@color/transparent"
android:singleLine="true"
android:inputType="number"
android:maxLength="3"
android:digits="1234567890"
android:saveEnabled="false"
android:contentDescription="@string/RegistrationActivity_country_code_description"
tools:text="123" />
</LinearLayout>

View file

@ -89,18 +89,19 @@
android:layout_marginEnd="32dp"
android:layoutDirection="ltr"
android:orientation="horizontal"
android:weightSum="4"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/delete_account_fragment_country_spinner_frame">
<org.thoughtcrime.securesms.components.LabeledEditText
android:id="@+id/delete_account_fragment_country_code"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_weight="1"
app:labeledEditText_background="@color/white"
app:labeledEditText_textLayout="@layout/country_code_text" />
app:labeledEditText_textLayout="@layout/delete_account_country_code_text" />
<org.thoughtcrime.securesms.components.LabeledEditText
android:id="@+id/delete_account_fragment_number"