刚开始学习android studio,今天as莫名其妙给报了几行错。对照着报错的文件activity_image_view.xml第22行查看并未发现任何问题。我的res目录下面一直有红线,但是一直不知道这个红线具体指着是哪里有错误。麻烦大家看看~~
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id = "@+id/iv_1"
android:layout_width = "300dp"
android:layout_height = "200dp"
android:src = "@drawable/pictureone"
android:scaleType = "fitXY" />
<ImageView
android:id = "@+id/iv_2"
android:layout_width = "300dp"
android:layout_height = "200dp"
android:background = "#FFF000"
android:src = "@drawable/pictureone"
android:scaleType = "fitCenter"
android:layout_marginTop = "20dp"
android:layout_below = "@id/iv_1"/>
</RelativeLayout>
上图是activity_image_view.xml的内容
上图是整个空间的样子,有很多红线
以上是报错内容