与图像(图像缩小,看着模糊)的Andr​​oid网格视图 [英] android grid view with images (images shrinking and looking blur)

查看:165
本文介绍了与图像(图像缩小,看着模糊)的Andr​​oid网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要显示7个图标我的应用程序的主屏幕。要做到这一点就我已经使用图像视图来显示图像。对仿真器看起来完全正常,但图像缩小,看起来模糊,当我部署在LG擎天柱P350的应用程序,请帮助我如何清楚实际尺寸显示图像排列在网格视图中的图标

I have to show 7 icons on the home screen of my application .To do this i have arranged the icons on the grid view using image view to show images .On emulator it looks absolutely fine but images shrink and look blur ,when i deploy the application on LG Optimus p350 please help me how to show the images clearly of actual size :

<GridView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/gridview" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:columnWidth="61dp"
    android:numColumns="3" android:verticalSpacing="10dp"
    android:horizontalSpacing="10dp" android:stretchMode="spacingWidthUniform"
    android:gravity="center" android:layout_gravity="center" />

图标的大小为61 * 80

icon size is 61*80

<supports-screens android:smallScreens="true"
        android:normalScreens="true" android:largeScreens="true"
         android:anyDensity="true"/>

请看到的图像和code在模拟器中输出显示像this.I要显示设备上输出也与此clarity.Please指南

Please see the image and the code On emulator the output is shown like this.I want to show output on device also with this clarity.Please guide

看第二个截屏(模糊的QVGA仿真器),并请指导我如何纠正它。

see second screen shot (blur on qvga emulator) and please guide me how to correct it ..

推荐答案

您提供了多种分辨率的资源?请仔细阅读这篇文章了解支持多画面

Are you providing multiple resolution resources? Read carefully this article about Supporting Multiple Screens.

我不认为图像缩水,他们只能看着小,因为你的手机具有更高的密度和分辨率比你正在测试在模拟器上。

I don't think the images shrink, they only look smaller because your phone has a higher density or resolution than the emulator you were testing on.

这篇关于与图像(图像缩小,看着模糊)的Andr​​oid网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆