第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么ImageView顯示失???

為什么ImageView顯示失敗?

deemos 2017-07-26 22:09:35
<?xml?version="1.0"?encoding="utf-8"?> <LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????xmlns:app="http://schemas.android.com/apk/res-auto" ????android:layout_width="match_parent" ????android:layout_height="match_parent" ????android:background="@color/white" ????android:orientation="vertical"> ????<EditText ????????android:id="@+id/ed1" ????????android:layout_width="match_parent" ????????android:layout_height="60dp" ????????android:layout_margin="15dp" ????????android:background="@drawable/white_bg" ????????android:editable="false" ????????android:gravity="right|center" ????????android:hint="萬歲"?/> ????<TableLayout ????????android:layout_width="wrap_content" ????????android:layout_height="match_parent" ????????android:layout_gravity="center"> ????????<TableRow ????????????android:layout_width="match_parent" ????????????android:layout_height="match_parent"> ????????????<ImageView ????????????????android:id="@+id/imageView" ????????????????android:layout_width="90dp" ????????????????android:layout_height="90dp" ????????????????app:srcCompat="@mipmap/shen2"?/>??//注意!注意!就是這里的圖片不顯示?。?! ????????????<Button ????????????????android:id="@+id/Del" ????????????????android:layout_width="90dp" ????????????????android:layout_height="90dp" ????????????????android:text="@string/Del"?/> ????????????<Button ????????????????android:id="@+id/Cancel" ????????????????android:layout_width="90dp" ????????????????android:layout_height="90dp" ????????????????android:text="@string/Cancel"?/> ????????????<Button ????????????????android:id="@+id/division" ????????????????android:layout_width="90dp" ????????????????android:layout_height="90dp" ????????????????android:text="@string/division"?/> ????????</TableRow> ????</TableLayout> </LinearLayout>我在AS中預覽的時候有圖片,但在虛擬機上就沒有了,我嘗試安裝到手機上還是不顯示。請教各位大神這是什么原因?怎么解決?感激?。?!我附上了圖片可以看一下,再次感激?。?!
查看完整描述

2 回答

已采納
?
Omooo

TA貢獻10條經(jīng)驗 獲得超3個贊

明天我可以實驗一下,先說一下我的想法,可能不準確。
src是填充一個對象,你給了90dp,可能小了,所以內(nèi)容填充不進去,你可以試一下用background,讓它以背景圖的方式填進去。只是我的想法,畢竟沒實驗。

查看完整回答
2 反對 回復 2017-07-26
  • deemos
    deemos
    行,我明天也可以試試,但是在AS里可以預覽出來就很奇怪了,預覽是5點幾的系統(tǒng),我是7.0的不應(yīng)該出現(xiàn)這樣的情況按理講。
  • Omooo
    Omooo
    對呀,畢竟這樣的錯誤只能不斷嘗試,說也很難說。
  • deemos
    deemos
    好的,還要多試試,感覺AS比較復雜
點擊展開后面2
?
liu丶

TA貢獻15條經(jīng)驗 獲得超32個贊

?srcCompat這個的問題 ? 你換成src試試

查看完整回答
1 反對 回復 2017-07-27
  • deemos
    deemos
    好的,我試試,話說,這兩個有什么區(qū)別么?
  • deemos
    deemos
    解決了,具體的可以看看我給1樓的回復
  • 2 回答
  • 0 關(guān)注
  • 2155 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號