<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat
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:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activity.Places_details_Activity">
<androidx.appcompat.widget.Toolbar
android:id="@+id/details_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/my_light_primary"
app:titleTextColor="@color/white"
app:navigationIcon="@drawable/baseline_arrow_back_24"
app:title="详情"
tools:ignore="MissingConstraints" />
<ImageView
android:id="@+id/pic1"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginTop="20dp"
android:src="@drawable/lb_1"
android:scaleType="centerCrop"
/>
<TextView
android:id="@+id/name1"
android:layout_margin="10dp"
android:layout_width="match_parent"
android:text="****"
android:layout_height="wrap_content"/>
</androidx.appcompat.widget.LinearLayoutCompat>
以上是我的xml文件,但是运行时并未显示imageview控件和textview控件是为什么
