Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/12/2015, 09:57
Avatar de mikolbe
mikolbe
 
Fecha de Ingreso: octubre-2010
Mensajes: 104
Antigüedad: 13 años, 6 meses
Puntos: 2
layout ubicacion

Hola gente, cómo están?

Tengo un problemita con un layout.
Dentro del mismo tengo dos LinearLayout dentro de un RelativeLayout, en el screen quiero mostrar dos EditText arriba y abajo del todo un botón.
Lo que me está sucediendo es que cuando se me activa el teclado para escribir en un EditText, el botón se sube quedando arriba de los EditText en pantallas chicas.

Seguramente me está faltando algo.
Les dejo el xml del layout a ver si alguien ve algo en que me puedan ayudar.
Código:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/pm_bkg">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingTop="20dp"
        android:paddingLeft="10dp"
        android:paddingRight="10dp"
        >


        <!-- NOMBRE -->

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/title_car_name"
            android:id="@+id/textView1"
            android:textStyle="bold"
            android:textSize="17dp"
            android:paddingBottom="10dp" />

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/txt_nombre"
            android:hint="@string/hint_car_name"
            android:singleLine="true"
            android:paddingLeft="10dp"
            android:paddingTop="7dp"
            android:paddingRight="5dp"
            android:paddingBottom="6dp"
            />

        <!-- MATRICULA -->
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/title_car_mat"
            android:id="@+id/textView2"
            android:textStyle="bold"
            android:textSize="17dp"
            android:paddingBottom="10dp"
            android:paddingTop="25dp"/>

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:id="@+id/txt_matricula"
            android:hint="@string/hint_car_mat"
            android:singleLine="true"
            android:paddingLeft="10dp"
            android:paddingTop="7dp"
            android:paddingRight="5dp"
            android:paddingBottom="6dp"
            />

    </LinearLayout>

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:paddingBottom="30dp"
        android:gravity="bottom">

        <Button
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Agregar auto"
            android:id="@+id/btn_add_car"
            android:layout_gravity="bottom"
            android:background="#2b5aff"
            android:textColor="#ffffffff"

            />
    </LinearLayout>

</RelativeLayout>
Muchas gracias.
<<[[Mikol Be]]>>