在main.xml中增加ImageView控件时如果没有加android:contentDescription="@string/app_name"时会引起Missing contentDescription attribute on image
主要是因为在main.xml中没有使用TextView之类的文本控件,ADT会提示给像ImageView增加一个说明,这里添加android:contentDescription="@string/app_name"即可,其实加不加影响不大。只是在IDE中会显示一个黄色下划线,看着不爽。
分享到:
相关推荐
使用ImageView显示图片很简单,下面的教程在布局文件中直接通过布局属性将图片布局了,so easy的~~教程见:http://www.ourunix.org/android/post/125.html
实验三 ImageView和Switch的使用
Android中使用自定义ImageView实现图片圆形遮罩效果(常和Glide搭配使用),详细了解请移步:http://blog.csdn.net/zxc514257857/article/details/63834235
自定义ImageView 封装(jar): 图片放大缩小,自由移动等实例
主要是使用了ImageView和AnimationDrawable组合的方式来实现ProgressBar的旋转效果
CaptchaImageView:自定义ImageView生成验证码图片
android demo,imageview的使用的源代码
progress-image-view-android 带简单进度的android ImageView控件
使用方法和ImageView一样可以和Imageloader配套使用,ImageViewTouch,
Android中圆形ImageView,自定义ImageView
android自定义ImageView实现旋转动画
Android中使用自定义ImageView实现图片圆形遮罩效果,详细了解请移步:http://blog.csdn.net/zxc514257857/article/details/63834235
圆形的ImageView可以完全替代安卓系统默认的ImageView,内附详细demo。
1.在listView中,当点击ImageView时,EditText+1,当点击mageView1时,EditText-1。
手势缩放的Imageview
让两个imageView上的图片实现动画互换并且让互换后的Imageview位置也互换
Android应用源码之imageView1_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 ...
通过调用系统的相册或者相机,将图片设置到Imageview上面
项目使用网上的框架,将左右翻转的效果做成了ImageView,方便使用。