0
There is an Activity that gives a bug once in a while, it gets the appearance of the image I posted, then when I click on it, it goes back to normal, but this is random, there are times that do not happen.
Follows the code:
<?xml version="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?
Thanks.
Ever tested on a different device? Maybe the problem is on the device. Visually, the layout code seems ok to me.
– itscorey
I think the
LinearLayout
most external is missing be closed...– mutlei
Funny. In fact, as @mutlei said in the comment above, the
LinearLayout
external is open. I don’t know how you managed to send this to the device.– emanuelsn
There was some error when entering the code on the site, but Linearlayout is closed correctly in my code.
– user22881