ANTI_ALIAS_FLAG的内部布局ImageView的? [英] ANTI_ALIAS_FLAG for ImageView within layout?
本文介绍了ANTI_ALIAS_FLAG的内部布局ImageView的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道如何适用 ANTI_ALIAS_FLAG
到的ImageView
的布局中,而不是在Java中?
Does anyone know how to apply the ANTI_ALIAS_FLAG
to ImageView
's in layouts rather than in Java?
推荐答案
您要应用的属性安卓反锯齿=真正的
,像这样:
You want to apply the attribute android:antialias="true"
, like so:
<ImageView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:antialias="true" />
这篇关于ANTI_ALIAS_FLAG的内部布局ImageView的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文