ImageView上的Android 144dp位图资源

Use*_*ser 3 resources android image bitmap imageview

我想在ImageView(144dp)中显示大位图,但质量不好。位图存储在我的可绘制资源中。

我可以完整显示位图吗?

xml布局:

<ImageView
    android:layout_width="144dp"
    android:layout_height="144dp"
    android:src="@drawable/ic_add"/>
Run Code Online (Sandbox Code Playgroud)

我想要的是:

http://tinypic.com/r/2jv72w/8

http://tinypic.com/r/2r7mtz4/8

是)我有的:

http://tinypic.com/r/osh9qq/8

查看显示列表为空的大图像。

pet*_*tey 6

将以下位置的ic_add文件替换为更好的位图版本,其大小大约为144dp代表的android密度存储桶,如下所示:

folder (density buckets)       image dimensions
res/drawable-mdpi              144x144 px
res/drawable-hdpi              216x216 px
res/drawable-xhdpi             288x288 px
res/drawable-xxhdpi            432x432 px
res/drawable-xxxhdpi           576x576 px
Run Code Online (Sandbox Code Playgroud)