0
As you can see I’m with a little problem of layout in this form on Android, this form is opened inside a Fragment normally where I will send this data.
1- To my surprise the EditText
does not expand to the whole screen. I have tried using Layoutparams setando matchparent but nothing happened...
2- Buttons are hiding behind the BottonNavigationView
, I’ve tried to put a scrollview
there but he does not leave there...
This component BottonNavigation
it has to stay fixed on the screen because I don’t want it to hide with the Behavior function... Bottonnavigation
Would anyone have any hint to try to fit this form properly or some help from beyond ?
This layout is here:
<?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"
android:layout_width="match_parent"
android:id="@+id/layouparams"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_nome"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Nome Ex.: Pedro Silva"
android:inputType="text"
/>
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Email Ex.: [email protected]"
android:inputType="textEmailAddress"
/>
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_datanasc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Data Nasc Ex.: 01/01/1980"
android:inputType="number"
android:maxLength="10"
app:mask="##/##/####" />
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_contato"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Contato Ex.: (16)9999-00-99"
android:inputType="number"
android:maxLength="14"
app:mask="(##)####-##-##" />
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_rg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Rg Ex.: 000000000111"
android:inputType="text"
/>
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_cpf"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="CPF Ex.: 000-000-000.00"
android:inputType="number"
android:maxLength="15"
app:mask="###-###-####.##" />
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_end"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Endereço Ex.: rua joao paulo 1000"
android:inputType="text"
/>
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_cep"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="CEP Ex.: 14600-000"
android:inputType="number"
android:maxLength="9"
app:mask="#####-###" />
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_bairro"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Bairro Ex.: centro"
android:inputType="text"
android:maxLength="9"
/>
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_cidade"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Cidade Ex.: Parnaíba-PI"
android:inputType="text"
/>
<com.vicmikhailau.maskededittext.MaskedEditText
android:id="@+id/reg_txt_duvidas"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Dúvidas sobre o curso"
android:inputType="textMultiLine"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/btn_cancel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Cancelar" />
<Button
android:id="@+id/btn_save"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Enviar Inscrição" />
</LinearLayout>
</LinearLayout>
</ScrollView>
Thanks for the tip I’ll test... the other problem Imagine what it might be ? I mean that space on the right of the screen
– Paulo Ceami
It didn’t work ... I tested on mobile api 16 with android 4.1 nor appeared anything on the screen.. the views disappeared...after took and they returned.... very strange behavior.
– Paulo Ceami
that such of above ai also did not work
– Paulo Ceami
above will not work because your root layout is a Constraint layout, not a relative layout. When asking a question, let it complete.
– itscorey
@Pauloceami edited the code with your layout, take a look there ;)
– itscorey