布局中 ImageView 的 ANTI_ALIAS_FLAG?
有谁知道如何在布局中而不是在Java中将ANTI_ALIAS_FLAG
应用到ImageView
?
Does anyone know how to apply the ANTI_ALIAS_FLAG
to ImageView
's in layouts rather than in Java?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您想要应用属性
android:antialias="true"
,如下所示:You want to apply the attribute
android:antialias="true"
, like so:2013年方式:声明描述ImageView内容的特殊xml资源。例如,我们希望 ImageView 包含抗锯齿位图。所以我们需要写这样的东西:
2013-year-way: declare special xml resource describing ImageView's content. For example we want an ImageView to contain antialiased Bitmap. So we need to write somethig like this: