Why always on the sixth Imageview I put the App hangs

Asked

Viewed 40 times

0

<ImageView
    android:id="@+id/lampiaoId"
    android:layout_width="54dp"
    android:layout_height="164dp"
    android:layout_marginStart="96dp"
    android:layout_marginTop="340dp"
    android:contentDescription="@string/lampiao_aceso"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="@+id/quartoEscuroId"
    app:srcCompat="@drawable/lampiaorecortado" />

Are 6 codes like the above, but whenever I put the sixth image the app does not run.

All images show this: app:layout_constraintTop_toTopOf="@+id/roomEscuroId"

I connected them all to the top of the background image.

  • An error appears in Logcat?

  • I just saw in the English Satckoverflow: android:largeHeap="true" I put this in the Manifest and now it’s gone. I think my images are large, I will decrease the size. It is something with memory use.

No answers

Browser other questions tagged

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