开发者社区> 问答> 正文

代码@android :drawable/edit_text是什么意思?为何出错?

<LinearLayout
 
                        android:layout_width="fill_parent"
 
                        android:layout_height="42dp"
 
                        android:background="@android :drawable/edit_text"
 
                        android:orientation="horizontal" >
error: Error: No resource found that matches the given name (at 'background' with value 
  '@android :drawable/edit_text'). 

这是怎么回事, 网上搜了下,说是引用android内部的样式

展开
收起
爵霸 2016-06-08 09:30:23 2412 0
1 条回答
写回答
取消 提交回答
  • 你要先去学习eclipse里 文件目录, res文件夹下的drawable是放图片的,这段报错是说找不到那个背景图片

    2019-07-17 19:31:09
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载