ADT 16.0 在定义一个ImageVIew的时候 总是提示这个[Accessibility] Missing contentDescription attribute on image警告,虽说可以不理 但总是感觉怪怪的,在网上一搜 发现原来这是ADT 16.0的新特性,在一些没有文本显示的控件里,如imageView和imageButton等,ADT会提示你定义一个android:contentDescription属性,用来描述这个控件的作用。英文原文如下
Resolved this warning by setting attribute android:contentDescription for my ImageView
android:contentDescription="@string/desc"
Android Lint support in ADT 16 throws this warning to ensure that image widgets provide a contentDescription
This defines text that briefly describes content of the view. This property is used primarily for accessibility. Since some views do not have textual representation this attribute can be used for providing such.
Non-textual widgets like ImageViews and ImageButtons should use the contentDescription attribute to specify a textual description of the widget such that screen readers and other accessibility tools can adequately describe the user interface.
相关推荐
ImageView 图片显示样式的几种类型。android:scaleType是控制图片如何resized/moved来匹对ImageView的size。
Android ImageView实现是对图片放大后可以局部的拉伸放大,双击放大
android ImageView网络图片加载、动态设置尺寸、圆角(绝对好用)
Android ImageView 宽度设定,高度按比例缩放
on android ImageView when it's being vertically or horizontally scrolled (moving) on the screen. I wrote an article explaining how this works and implemented, please check it out ...
Android中ImageView实现平铺多张图片Android中实现平铺图片有两种方式:在drawable中定义平铺的Bitmap然后在ImageView中引
android ImageView网络图片加载、动态设置尺寸、圆角..
点击图片磁贴效果 很炫.可以玩啊
progress-image-view-android 带简单进度的android ImageView控件
android imageview 图片缩放 图片缩放、移动+异步加载+Activity半透明
在Android Studio 中使用Imageview播放帧动画是不能代码混淆,可以使用FAImageView实现
compile 'com.sunfusheng:GlideImageView:<latest>' GlideImageView 主要方法 load(String url, @DrawableRes int placeholder, int radius, OnProgressListener onProgressListener) load(Object obj, @DrawableRes...
android 将Imageview 将view生成图片后保存到本地相册的实现生成图片后保存到本地相册的实现,android 将Imageview生成图片后保存到本地相册的实现 android 将Imageview生成图片后保存到本地相册的实现, 有需要的朋友...
Android ImageView点击选中后添加边框,详细内容可以到我的博客www.heimizhou.com中了解。
Android ImageView图片循环跑马灯效果源码
Android ImageView自定义实现,支持缩放,由不同的触控手势
android自定义ImageView实现旋转动画
影像检视在Android Studio中创建ImageView。 您只需要签出MainActivity.java(app / src / main / java / com / example / geenu / checkboxes)和activity_main.xml(app / src / main / res / layout)文件的代码...
Android平台ImageView拖拽实例,点击ImageView,可随着随着触摸轨迹随意移动,绝对超值。
在Android系统中实现ImageView控件的动画效果