title: Why android lose image quality when displaying a png file?
body: <p>I want to display a png image on android. This is the image file:</p>
  
  <p><img src="https://i.stack.imgur.com/Eujbq.png" alt="enter image description here"></p>
  
  <p>The right end is a bit darker than left.</p>
  
  <p>But the quality of image lost on android application(using ImageView):</p>
  
  <p><img src="https://i.stack.imgur.com/aBiTj.png" alt="enter image description here"></p>
  
  <p>Please note part in the red frame. The color is not changing smoothly. </p>
  
  <p>But if I use the browser of my android phone, it plays good(so it's not reason of the phone screen):</p>
  
  <p><img src="https://i.stack.imgur.com/LSW68.png" alt="enter image description here"></p>
  
  <p>This is my android code, which is pretty simple:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"&gt;
      &lt;ImageView android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:background="@drawable/hhh"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>where <code>hhh</code> is my first image posted here, which is under <code>res/drawable</code>.</p>
  
  <p>I test it on my android phone(android 2.3.6) and android simulator(with android 2.2/2.3/4.0), all do not display good. But it plays good on my android pad(android 4.0.3).</p>
  
  <p>What's the problem, and how to fix it?</p>