<ImageButton
android:layout_width="fill_parent"
android:layout_height="200dp"
android:id="@+id/imageButton"
android:scaleType="fitCenter"
android:clickable="true"
android:cropToPadding="true"
android:adjustViewBounds="true"
android:src="@drawable/wallhaven_263366"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginTop="65dp"
android:contentDescription="@string/imagebutton" />
這是我的代碼..我試過,我發現這裏幾乎每一件事情......圖像源未找到或ContentDescription缺少
我已經添加了圖像中的src但它也不顯示預覽或avd。有時它給錯誤沒有找到src,因爲給定
或內容描述丟失..如果我提供了內容描述和res值,那麼它說不能解決資源@字符串/。
歡迎任何形式的幫助。
我沒有刪除的數字,現在 錯誤可見:執行失敗的任務「:應用程序:mergeDebugResources」。 > Crunching Cruncher wallhaven.png失敗,請參閱日誌 這是新的錯誤 –