Como vocês podem ver galera estou com um probleminha de layout nesse form no Android, este form é aberto dentro de um fragment normalmente onde eu vou realizar o envio desses dados.
1- Pra minha surpresa o EditText
não se expande pra tela toda. Já tentei usar o LayoutParams setando matchparent mas nada aconteceu...
2- os Botões estão se escondendo atras do BottonNavigationView
, já tentei colocar um scrollview
ali mas ele não sai dali...
Este componente BottonNavigation
tem que ficar fixo na tela por que eu não quero que ele se esconda com a função Behavior...como acontece aqui BottonNavigation
Alguém teria alguma dica pra tentar encaixar este form corretamente ou alguma ajuda do além ?
Este layout está aqui:
<?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>