diff options
author | Torsten Grote <t@grobox.de> | 2020-06-26 11:25:48 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-06-26 11:25:48 -0300 |
commit | 9cbb35ccc65db7b5d8ce1afe4b3c5feae30be1eb (patch) | |
tree | 4e3c857575303b689a0e4c15915ef2ec274a9187 /anastasis-ui/src/main/res/layout/fragment_identity.xml | |
parent | 730fbaa702b467669c4b88f6c03fa3e1823abf73 (diff) | |
download | taler-android-9cbb35ccc65db7b5d8ce1afe4b3c5feae30be1eb.tar.gz taler-android-9cbb35ccc65db7b5d8ce1afe4b3c5feae30be1eb.tar.bz2 taler-android-9cbb35ccc65db7b5d8ce1afe4b3c5feae30be1eb.zip |
[anastasis] add more countries and allow switching between them
Diffstat (limited to 'anastasis-ui/src/main/res/layout/fragment_identity.xml')
-rw-r--r-- | anastasis-ui/src/main/res/layout/fragment_identity.xml | 52 |
1 files changed, 10 insertions, 42 deletions
diff --git a/anastasis-ui/src/main/res/layout/fragment_identity.xml b/anastasis-ui/src/main/res/layout/fragment_identity.xml index e24be31..072414d 100644 --- a/anastasis-ui/src/main/res/layout/fragment_identity.xml +++ b/anastasis-ui/src/main/res/layout/fragment_identity.xml @@ -49,7 +49,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="16dp" - android:text="Detected Country:" + android:text="Country:" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/identityIntro" /> @@ -87,8 +87,8 @@ <com.google.android.material.textfield.TextInputEditText android:layout_width="match_parent" android:layout_height="wrap_content" - android:inputType="textPersonName|textCapWords" - android:hint="Name" /> + android:hint="Name" + android:inputType="textPersonName|textCapWords" /> </com.google.android.material.textfield.TextInputLayout> @@ -105,8 +105,8 @@ <com.google.android.material.textfield.TextInputEditText android:layout_width="match_parent" android:layout_height="wrap_content" - android:inputType="text|textCapWords" - android:hint="Place of birth" /> + android:hint="Place of birth" + android:inputType="text|textCapWords" /> </com.google.android.material.textfield.TextInputLayout> @@ -129,46 +129,14 @@ </com.google.android.material.textfield.TextInputLayout> - <com.google.android.material.textfield.TextInputLayout - android:id="@+id/idNumberInput" - style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_margin="16dp" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/birthDateInput" - app:layout_constraintVertical_bias="0.0"> - - <com.google.android.material.textfield.TextInputEditText - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:hint="AHV number" - android:inputType="number" - android:maxLength="13" /> - - </com.google.android.material.textfield.TextInputLayout> - - <com.google.android.material.textfield.TextInputLayout - android:id="@+id/taxIdInput" - style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" - android:layout_width="match_parent" + <ViewStub + android:id="@+id/stub" + android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_margin="16dp" - app:layout_constraintBottom_toTopOf="@+id/createIdentifierButton" + android:layout="@layout/country_switzerland" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/idNumberInput" - app:layout_constraintVertical_bias="0.0"> - - <com.google.android.material.textfield.TextInputEditText - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:hint="Tax ID number" - android:inputType="number" - android:maxLength="13" /> - - </com.google.android.material.textfield.TextInputLayout> + app:layout_constraintTop_toBottomOf="@+id/birthDateInput" /> <Button android:id="@+id/createIdentifierButton" |