Image Pixelation (PNG)

by nimph » Sat, 05 Sep 2009 09:44:16 GMT

Sponsored Links
 I'm trying to load a PNG image into an ImageView using the following


The images are displayed just fine, but they are badly pixelated.

Putting the images in 'res/drawables' works fine, I only see this with
images loaded from the file-system.

What am I doing wrong?  Let me know if you need more info.


Image Pixelation (PNG)

by String » Sat, 05 Sep 2009 11:35:07 GMT

 I've had this problem if the size of the ImageView doesn't exactly
match the dimensions of the bitmap in the file.



Sponsored Links

Image Pixelation (PNG)

by nimph » Sun, 06 Sep 2009 12:46:43 GMT

 Thanks, had not tried that, but...  No luck...

I tried adding the following to the ImageView.

    android:maxHeight="32px" android:maxWidth="32px"

Are these the attributes you set?



Other Threads

1. Better App Management

In my view, one of Android's biggest advantages above other platforms
are it's app capabilities.  Android gives developers tremendous power
to leverage contacts, maps, location, intents, broadcast receivers,
content providers and background/multi-tasking to create amazing apps
and a great, cohesive system.

This is a tremendous power, and without sounding too much like
Spiderman, with great power comes great responsibility.

When developers misuse this responsibility it hurts Android as a
whole, creating insecure situations, compromising data or just slowing
the system down and crashing.

The balance between use and misuse is very tricky (highlighted in
permissions, where users question what an app uses each permission
for).  Overall, while power to the developer is important, I would
suggest the following to put the power back in the user`s hand:

Overall, there needs to be better Application Management.  By this I
mean no just installing and uninstalling, but the ability to control
apps on a more granular level.  For example, some applications need to
run on start up, and that is a valuable feature.  However, some apps
misuse this feature and make the powering on of my device much slower
than need be.  I cannot think of a single example of when an app HAS
to start on boot (if it doesn`t start up, that`s that same as if it
was uninstalled!), so this app management feature should be able to
control which apps I allow to start on boot (task killers, location
trackers, etc) and which I do not allow (eg notepad apps).

Also, background processing is a huge feature (multitasking), but it
also is often abused.  The ability to specify the apps that are
allowed to run in the background (use CPU & resources), apps that only
persist state (stay in memory) and apps that are not allowed to
persist at all.  This would give tremendous power and overall improve
the Android landscape.

My two cents.


2. Latest Google App

Got to admit, it's improved life at home with my cats;


* Looking for Android Apps? - Try *

Funky Android Limited is registered in England & Wales with the company number  

The views expressed in this email are those of the author and not necessarily 
those of Funky Android Limited, it's associates, or it's subsidiaries.


3. How to generate "uImage" in stead of "zImage" when build Android kernel

4. Taking picture with Camera

5. SurfaceFlinger, Frame buffer device, Overlays

6. GsmCellLocation.getCid() returns very large numbers.

7. Playlist Content Provider