<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/file_icon"
style="@style/fileChooserIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/desc" />
<TextView
android:id="@+id/file_name"
style="@style/fileChooserName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
錯誤:This tag and its children can be replaced by one <TextView/> and a compound drawable
這個標籤及其子可以通過一個被替換的化合物和可繪製
我是新來的Android和不完全明白什麼錯誤。某些解決方案很難讓它複合,但沒有得到它。
它不是一個錯誤......這是[皮棉(http://tools.android.com/tips/lint)提示 – Selvin 2013-04-10 14:51:08
會影響項目嗎? – Kirarahul 2013-04-10 14:59:41
聽聽這些提示會更好(檢查Raghav Sood的答案)......但是有時候我們可以忽略他們......在這個特殊的例子中,你可以得到性能提升(如果你使用提示),特別是當你使用這個佈局在ListView – Selvin 2013-04-10 15:04:45