与...有关
现在我的问题是:
ImageView imgView=(ImageView)findViewById(R.id.imgView);
Uri imgUri=Uri.parse("android.resource://my.package.name/"+R.drawable.image);
imageView.setImageURI(imgUri);
Run Code Online (Sandbox Code Playgroud)
不起作用.为什么?
我知道
imgView.setImageDrawable(Drawable.createFromStream(
getContentResolver().openInputStream(imgUri),
null));
Run Code Online (Sandbox Code Playgroud)
工作.
但这并不能解决我的问题.因为我想用uri独立设置图像,如果它来自资源或来自相机ACTION_PICK意图......
欢迎任何建议.谢谢.问候
使用官方IE移动浏览器在WP8上不显示重新收据盒.
只需使用该设备(我尝试使用wp8)到官方演示页面:
http://www.google.com/recaptcha/api2/demo
并且您将看到重新显示框未显示.