You*_*jae 35 xml android android-layout android-studio
在布局XML文件中,红色感叹号显示在@drawable引用的左侧.几乎所有人drawable都有这个标志:
内容shape_detail_btn_border.xml如下.它是一组形状,没有任何损坏的图像资源:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@android:color/white"/>
<corners android:radius="5dp"/>
<stroke android:width="1dp" android:color="@color/bapul_color_d5d5d5"/>
</shape>
Run Code Online (Sandbox Code Playgroud)
我将鼠标悬停在标记上,没有显示任何内容.这是什么意思?
请注意,Android Studio版本为1.4(AI-141.2288178),目前是最新版本.并且,构建和运行应用程序完全没有问题.
You*_*jae 60
简而言之,这不是代码中的错误.它告诉"Android Studio无法显示给定drawable的缩略图."
感谢@Ramz在/sf/answers/2312254031/上找到答案.我将留下这篇文章,因为这个问题比链接的问题更具描述性.
| 归档时间: |
|
| 查看次数: |
8250 次 |
| 最近记录: |