This xml works perfectly in Android studio emulators, but not on physical device. I ask for help

Asked

Viewed 22 times

0

<TextView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_marginTop="20dp"
    android:gravity="center"
    android:text="@string/Mensagem_Principal"
    android:textSize="30sp"
    android:textStyle="bold" />

<TextView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_marginTop="10dp"
    android:gravity="center"
    tools:text="Selecione a Categoria:"
    android:textStyle="bold"/>



<ListView
    android:id="@+id/listviewCat"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:text="@string/Categoria"

    />

  • What exactly is going wrong? You can show a screen print of the device?

1 answer

0

Good afternoon.

Maybe it’s some different setup from the Android Studio emulator for the physical phone you’re using for testing. I suggest you check the SDK Tools and also if the phone is allowed to Developerinserir a descrição da imagem aqui

  • Thanks, but the application is being loaded, however the layout is not presented in the same form as the emulators.

Browser other questions tagged

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