图片控件如何引用自己的图片

2019-03-26 12:38发布

我放了一个图片控件,用系统自带的图片好使。
5.jpg
如上图。
我想引用一个自己电脑上的图片,怎么操作啊?
我电脑上有一个1.jpg的图片,我试了一下,报错。
<ImageView
        android:id="@+id/imageView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

            android:src="@drawable/1"/>

error: Error: No resource found that matches the given name (at 'src' with value '@drawable/1').
是不是图片要放在哪个文件夹里呀?高手支招,谢谢!

此帖出自Linux与安卓论坛
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。