HI Ganesh,
You can use bitmap scaling according to resolution of screen.
//To get resolution
Display display=getWindow().
getWindowManager().getDefaultDisplay();
        int height=display.getHeight();
        int width=display.getWidth();
//To scale bitmap
Bitmap scaledBigmap=Bitmap.
createScaledBitmap(originalBitmap, width, height, true); 
or
          Matrix matrix=new Matrix();
        matrix.postScale(width, height);
    Bitmap scaledBigmap=Bitmap.createBitmap(originalBitmap, 0, 0, width, 
height, matrix, true);
originalBitmap.recycle();

and use scale bitmap.
Hope this will help you to resolve issue.

Regards
Imran Ali


On Tuesday, 22 May 2012 11:53:49 UTC+5:30, Ganesh Vadlakonda wrote:
>
> Hi all, 
>
> I am working on android applications. 
> I am getting some images from server. And I am downloading those 
> images to cache memory for offline also. 
> Later I am applying downloaded image to image view by converting as 
> bitmap. 
> But the issue is When the screen sizes changes the image is not 
> changing according to the screens  so that for smaller screens its 
> showing very big ,  for larger screens its showing very small. 
> Can any body give me the solution to scale my downloaded image for 
> multiple screens. 
>
>
> thanks in advance 
> Ganesh v

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to