我是新來的android,我不知道佈局是如何工作或如何調試。這是CardView xml文件的外觀。我知道文本在那裏。但是,由圖像TextView沒有出現在cardView上
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_margin="5dp"
card_view:cardElevation="2dp"
card_view:cardCornerRadius="4dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/info_image"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/info_text"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
覆蓋這是怎麼樣子的應用程序。
沒有它看起來像這樣的ImageView的。
會發生什麼事,如果你刪除的ImageView? –