android - Android Studio 中的形状和背景错误

标签 android background drawable shapes

我是 Android 世界的新手,我遇到了一个问题。我正在尝试在我的第一个练习中执行这段代码 http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape我有错误但没有错误。我的意思是我有红色感叹号,但没有出现错误消息。 我不知道我做错了什么。有任何想法吗?将不胜感激任何帮助:) i.stack.imgur.com/id6Rg.jpg

最佳答案

answer通过 Youngjae 发送至 this question应该给你答案:

Don't worry, it's for the new Android Studio 1.4, it's appear becasuse there, normally, appear a little icon showing the image from Drawable but if you are using a drawable xml (not being an image), the IDE cannot show a little preview but, don't worry for that error because It's not an error

简而言之:这不是代码中的错误。它告诉您“Android Studio 无法显示给定可绘制对象的缩略图”。

关于android - Android Studio 中的形状和背景错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29244653/

相关文章:

android - 一个单词不同颜色的TextView触发onclick事件

html - div 中的背景图片不起作用(包括视频)

WPF插件创建UI策略

android - 我在哪里可以找到 android 系统可绘制资源? [安卓API-7]

android - 我如何在 android studio 的矢量 Assets 中修复 NOTHING TO SHOW

java - Android:自定义最近的应用程序缩略图(默认截图)

android - 在单个测试用例中运行超过 70-80 条测试线时,它显示 “socket hang up error” 或 "ESOCKETTIMEDOUT"

android - 如何在 Android 应用程序上自动切换到黑暗模式?

android - 为 TextView 获取三角形背景

android - Glide : load drawable but don't scale placeholder