我的应用程序不会绘制第五张图像

时间:2018-05-05 20:06:20

标签: android android-layout android-imageview

我在Android Studio中工作并尝试绘制一些图片。但是,在我放入第五张图像后,应用程序停止运行。当我拿走第五张图片时,程序运行得很好。我没有任何Java代码集可以做任何事情,所以这是问题所在的唯一地方。这是XML:

<?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=".GreateActivity">

<TextView
    android:id="@+id/textView6"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginEnd="8dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    android:fontFamily="@font/architects_daughter"
    android:text="@string/greateAt"
    android:textSize="36sp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<TextView
    android:id="@+id/textView7"
    android:layout_width="0dp"
    android:layout_height="180dp"
    android:layout_marginEnd="8dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="40dp"
    android:fontFamily="@font/architects_daughter"
    android:text="@string/greatTxt"
    android:textSize="24sp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView6" />

<ImageView
    android:id="@+id/imageView7"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView7"
    app:srcCompat="@drawable/html" />

<ImageView
    android:id="@+id/imageView8"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_marginEnd="8dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    app:layout_constraintEnd_toStartOf="@+id/imageView13"
    app:layout_constraintStart_toEndOf="@+id/imageView7"
    app:layout_constraintTop_toBottomOf="@+id/textView7"
    app:srcCompat="@drawable/css" />

<ImageView
    android:id="@+id/imageView9"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_marginBottom="8dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toStartOf="@+id/imageView15"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/imageView8"
    app:srcCompat="@drawable/java" />

<ImageView
    android:id="@+id/imageView13"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_marginEnd="8dp"
    android:layout_marginTop="8dp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView7"
    app:srcCompat="@drawable/js" />

<ImageView
    android:id="@+id/imageView15"
    android:layout_width="100dp"
    android:layout_height="100dp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.5"
    app:layout_constraintStart_toEndOf="@+id/imageView9"
    app:srcCompat="@drawable/python"
    tools:layout_editor_absoluteY="402dp" />

</android.support.constraint.ConstraintLayout>

如何解决此问题?

0 个答案:

没有答案