Failed to run App in android studio

Asked

Viewed 13 times

0

Good afternoon, you guys, I’m in need of a help please, I am running my App on my mobile and also on my emulator but in both cases my app looks like this as shown in the figure attached, so I would like a little help from you please.

JailsonDesign do meu app[![][1]]2

Here is the activity_main script:

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <TextView
        android:id="@+id/textTitulo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="App"
        android:textColor="#00aacc"
        android:textSize="25sp"
        tools:layout_editor_absoluteX="170dp"
        tools:layout_editor_absoluteY="40dp" />

    <EditText
        android:id="@+id/editNome"
        android:layout_width="290sp"
        android:layout_height="wrap_content"
        android:ems="10"
        android:hint="Nome"
        android:inputType="textPersonName"
        tools:layout_editor_absoluteX="47dp"
        tools:layout_editor_absoluteY="96dp" />

    <EditText
        android:id="@+id/editApelido"
        android:layout_width="290sp"
        android:layout_height="wrap_content"
        android:ems="10"
        android:hint="Apelido"
        android:inputType="textPersonName"
        tools:layout_editor_absoluteX="47dp"
        tools:layout_editor_absoluteY="158dp" />

    <EditText
        android:id="@+id/editPhone"
        android:layout_width="290sp"
        android:layout_height="wrap_content"
        android:ems="10"
        android:hint="Phone"
        android:inputType="phone"
        tools:layout_editor_absoluteX="47dp"
        tools:layout_editor_absoluteY="222dp" />

    <EditText
        android:id="@+id/editEmail"
        android:layout_width="290sp"
        android:layout_height="wrap_content"
        android:ems="10"
        android:hint="Email"
        android:inputType="textEmailAddress"
        tools:layout_editor_absoluteX="47dp"
        tools:layout_editor_absoluteY="287dp" />

    <Button
        android:id="@+id/btnLimapr"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button"
        tools:layout_editor_absoluteX="47dp"
        tools:layout_editor_absoluteY="365dp" />

    <Button
        android:id="@+id/btnSalvar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button"
        tools:layout_editor_absoluteX="248dp"
        tools:layout_editor_absoluteY="365dp" />

</android.support.constraint.ConstraintLayout>
  • What Layout are you using? Relative? Constraint?

  • What is the flaw?

  • Vinicius Lino am using the layout Blanch

  • The problem is in the layout you chose. Pass the XML code for us to take a look.

  • Jota you can post the Layout code here, please?

  • the flaw is that the app does not display the design correctly because it should fill the screen

  • I can send the txt file because I can’t put the whole code

  • Edit your question and place the XML code there...

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.