Bom Dia,
Manifest
-- Estou com uma dificuldade e gostaria da ajuda de vocês. No meu layout (código abaixo), possui alguns EditText e no final um botão. Funciona perfeitamente. O problema é que toda vez que eu clico no editText, o teclado fica por cima do botão. Alguém poderia me ajudar?
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:fitsSystemWindows="true"
tools:context=".LoginActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/scrollViewNova">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center"
android:padding="20dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/tipo"
android:id="@+id/tv_tipo"
android:textStyle="bold"
android:textSize="20dp"
android:layout_gravity="left" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/spinnerTipo" />
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/layout_sub_tipo"
android:visibility="gone">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/sub_tipo_os"
android:id="@+id/tv_sub_tipo"
android:textStyle="bold"
android:textSize="20dp"
android:layout_gravity="left" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/spinnerSubTipo" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/contato"
android:id="@+id/tv_contato"
android:textStyle="bold"
android:textSize="20dp"
android:layout_marginTop="5dp"
android:layout_gravity="left" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/spinnerContato" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/cidade"
android:textStyle="bold"
android:textSize="25dp"
android:layout_marginTop="5dp"
android:layout_gravity="left" />
<AutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/auto_complete_cidade"
android:textSize="20dp"
android:background="@drawable/edittextstylefundobranco"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/numero"
android:textStyle="bold"
android:textSize="20dp"
android:layout_gravity="left" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/et_numero"
android:inputType="number"
android:textSize="20dp"
android:layout_marginTop="5dp"
android:background="@drawable/edittextstylefundobranco"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="sem número"
android:id="@+id/checkBoxSemNumero"
android:layout_gravity="left"
android:checked="false"
android:layout_marginTop="5dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/numero_u"
android:textStyle="bold"
android:textSize="20dp"
android:layout_marginTop="5dp"
android:layout_gravity="left" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/et_numero_u"
android:inputType="number"
android:textSize="20dp"
android:background="@drawable/edittextstylefundobranco"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/hora_comunicacao"
android:textStyle="bold"
android:textSize="20dp"
android:layout_marginTop="5dp"
android:layout_gravity="left" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/et_hora_comunicacao"
android:inputType="time"
android:textSize="20dp"
android:background="@drawable/edittextstylefundobranco"
android:focusable="false"/>
<Button
android:id="@+id/bt_iniciar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="Iniciar"
android:layout_marginTop="5dp"
android:textStyle="bold"
android:textSize="20dp" />
</LinearLayout>
</ScrollView>
</android.support.design.widget.CoordinatorLayout>
Manifest
<activity android:name=".Nova" android:label="@string/title_activity_nova"
android:screenOrientation="portrait" android:windowSoftInputMode="stateHidden"></activity>
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
0 comentários:
Postar um comentário