Activity with bug that is breaking the layout

0

There is an Activity that gives a bug from time to time, it looks like the image I posted, then when I click on it, it returns to normal, but this is random, there is no time.

Followthecode:

<?xmlversion="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_margin="10sp"
    android:textSize="20sp"
    android:textColor="@color/black"
    android:textStyle="bold|italic"
    android:text="@string/erro"
    android:layout_gravity="center_horizontal" />

<TextView
    android:layout_width="wrap_content"
    android:layout_marginLeft="20sp"
    android:layout_marginRight="20sp"
    android:layout_marginTop="10sp"
    android:layout_marginBottom="5sp"
    android:layout_height="wrap_content"
    android:textColor="@color/black"
    android:textSize="18sp"
    android:text="@string/descricaoR"
    android:id="@+id/textView11" />

<EditText
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:inputType="textMultiLine"
    android:ems="10"
    android:gravity="top"
    android:padding="5dp"
    android:background="@color/white"
    android:layout_marginLeft="20sp"
    android:lines="6"
    android:layout_marginRight="20sp"
    android:id="@+id/txtDescricaoR" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="5sp"
        android:orientation="horizontal">

        <Button
            android:id="@+id/btnEnviar"
            android:layout_width="match_parent"
            android:layout_height="30sp"
            android:layout_gravity="center"
            android:layout_marginTop="5sp"
            android:layout_marginBottom="5sp"
            android:layout_marginLeft="20sp"
            android:layout_marginRight="3sp"
            android:layout_weight="1"
            android:text="@string/enviar" />

        <Button
            android:id="@+id/btnLimpar"
            android:layout_width="match_parent"
            android:layout_height="30sp"
            android:layout_gravity="center"
            android:layout_marginTop="5sp"
            android:layout_marginBottom="5sp"
            android:layout_marginLeft="3sp"
            android:layout_marginRight="20sp"
            android:layout_weight="1"
            android:text="@string/limpar" />

    </LinearLayout>

What can it be?

Thank you.

    
asked by anonymous 19.03.2015 / 01:27

0 answers