英文:
Picture showing error after being copied into drawable in android studio
问题
我想添加注册按钮的图像,但它不支持...我复制了第一张图像并粘贴到drawable中,完美运行,然后我尝试复制第二张图像,但它不显示。问题在哪里?我该如何解决?
我尝试了不同的图像,但问题仍然发生...我应该尝试一次性复制它们吗?
英文:
As you can see I want to add the register button image but it's not supporting....I copied the first image and pasted in drawable worked perfectly then I tried to copy the second one but its not showing. what's the problem? how should I solve this?
I tried different images but same problem occurs...should i try to copy them at once or what?
答案1
得分: 1
尝试将您的图像文件重命名。
将其转换为小写,并将“-”替换为“_”。
图像的名称可能导致错误。
例如,将其命名为register_button_black.png
。
英文:
try to rename your Image-file.
make it lowercase and replace the '-' by '_'.
There is an error to the image which is caused by the name.
f.e. name it like register_button_black.png
.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论