简体   繁体   English

为什么在android studio中看不到该图像的预览?

[英]Why Can not see the preview of this image in android studio?

I dont know why I can not use this image. 我不知道为什么我不能使用此图像。

The image is a 200x200px .png file 图片为200x200px .p​​ng文件
在此处输入图片说明

This is how looks in android studio, 这就是android studio的外观, 在此处输入图片说明

So I can see that you want to store a bunch of that image in an array called data . 因此,我可以看到您要将一堆图像存储在名为data的数组中。 I think the image you want to use is called ll.png . 我认为您要使用的图像称为ll.png But you used 但是你曾经

R.drawable.ic_launcher

to refer to it. 引用它。 I don't know who would ever use "ic_launcher" to mean "ll". 我不知道谁会用“ ic_launcher”来表示“ ll”。 You should refer to that ll.png like this: 您应该像这样引用ll.png

R.drawable.ll

I mean that is the most logical thing to do, right? 我的意思是这样做是最合逻辑的,对吧?

当图像太大(kb大小)时,看不到ic_launcher之类的预览,但仍能正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM