Wrap the contents of the CreateAccountFragment into a ScrollView, so that all its contents are available even for very small devices.

This commit is contained in:
Severiano Jaramillo 2019-02-20 14:10:51 -06:00
parent 5570229cef
commit 9e714d8f84

View file

@ -1,107 +1,113 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent" >
android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:focusable="true"
android:focusableInTouchMode="true"
android:clickable="true">
<com.google.android.material.textfield.TextInputLayout <LinearLayout
android:id="@+id/tilAccountName"
style="@style/Widget.Bitsy.TextInputLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/text__bitshares_account_name"> android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:focusable="true"
android:focusableInTouchMode="true"
android:clickable="true">
<cy.agorise.bitsybitshareswallet.views.MyTextInputEditText <com.google.android.material.textfield.TextInputLayout
android:id="@+id/tietAccountName" android:id="@+id/tilAccountName"
style="@style/Widget.Bitsy.TextInputLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:inputType="text" android:hint="@string/text__bitshares_account_name">
android:digits="abcdefghijklmnopqrstuvwxyz0123456789-"
android:singleLine="true"/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout <cy.agorise.bitsybitshareswallet.views.MyTextInputEditText
android:id="@+id/tilPin" android:id="@+id/tietAccountName"
style="@style/Widget.Bitsy.TextInputLayout" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:inputType="text"
android:layout_marginTop="@dimen/spacing_same_topic" android:digits="abcdefghijklmnopqrstuvwxyz0123456789-"
android:hint="@string/text_field__6_digit_pin" android:singleLine="true"/>
app:passwordToggleEnabled="true"> </com.google.android.material.textfield.TextInputLayout>
<cy.agorise.bitsybitshareswallet.views.MyTextInputEditText <com.google.android.material.textfield.TextInputLayout
android:id="@+id/tietPin" android:id="@+id/tilPin"
style="@style/Widget.Bitsy.TextInputLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:inputType="numberPassword" android:layout_marginTop="@dimen/spacing_same_topic"
android:singleLine="true"/> android:hint="@string/text_field__6_digit_pin"
</com.google.android.material.textfield.TextInputLayout> app:passwordToggleEnabled="true">
<com.google.android.material.textfield.TextInputLayout <cy.agorise.bitsybitshareswallet.views.MyTextInputEditText
android:id="@+id/tilPinConfirmation" android:id="@+id/tietPin"
style="@style/Widget.Bitsy.TextInputLayout" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:inputType="numberPassword"
android:layout_marginTop="@dimen/spacing_same_topic" android:singleLine="true"/>
android:hint="@string/text_field__confirm_pin" </com.google.android.material.textfield.TextInputLayout>
app:passwordToggleEnabled="true">
<cy.agorise.bitsybitshareswallet.views.MyTextInputEditText <com.google.android.material.textfield.TextInputLayout
android:id="@+id/tietPinConfirmation" android:id="@+id/tilPinConfirmation"
style="@style/Widget.Bitsy.TextInputLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:inputType="numberPassword" android:layout_marginTop="@dimen/spacing_same_topic"
android:singleLine="true"/> android:hint="@string/text_field__confirm_pin"
</com.google.android.material.textfield.TextInputLayout> app:passwordToggleEnabled="true">
<TextView <cy.agorise.bitsybitshareswallet.views.MyTextInputEditText
android:id="@+id/tvBrainKey" android:id="@+id/tietPinConfirmation"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/outline_rounded_corners" android:inputType="numberPassword"
android:gravity="center" android:singleLine="true"/>
android:padding="8dp" </com.google.android.material.textfield.TextInputLayout>
android:layout_marginTop="@dimen/spacing_different_topic"
tools:text="SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY"
android:textAppearance="@style/TextAppearance.Bitsy.Body1"/>
<TextView <TextView
android:layout_width="match_parent" android:id="@+id/tvBrainKey"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:text="@string/msg__brainkey_info"
android:textAppearance="@style/TextAppearance.Bitsy.Body2"
android:gravity="center"
android:padding="8dp"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_different_topic">
<com.google.android.material.button.MaterialButton
android:id="@+id/btnCreate"
style="@style/Widget.Bitsy.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:background="@drawable/outline_rounded_corners"
android:layout_marginBottom="4dp" android:gravity="center"
android:text="@string/button__create"/> android:padding="8dp"
<com.google.android.material.button.MaterialButton android:layout_marginTop="@dimen/spacing_different_topic"
android:id="@+id/btnCancel" tools:text="SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY SAMPLE BRAINKEY"
style="@style/Widget.Bitsy.Button.TextButton" android:textAppearance="@style/TextAppearance.Bitsy.Body1"/>
android:layout_width="wrap_content"
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="12dp" android:text="@string/msg__brainkey_info"
android:layout_toStartOf="@id/btnCreate" android:textAppearance="@style/TextAppearance.Bitsy.Body2"
android:text="@android:string/cancel"/> android:gravity="center"
</RelativeLayout> android:padding="8dp"/>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_different_topic">
<com.google.android.material.button.MaterialButton
android:id="@+id/btnCreate"
style="@style/Widget.Bitsy.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_marginBottom="4dp"
android:text="@string/button__create"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/btnCancel"
style="@style/Widget.Bitsy.Button.TextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="12dp"
android:layout_toStartOf="@id/btnCreate"
android:text="@android:string/cancel"/>
</RelativeLayout>
</LinearLayout>
</ScrollView>