Note that there are some explanatory texts on larger screens.

plurals
  1. POcolor banding solution killed after defining sdk-version in manifest
    primarykey
    data
    text
    <p>The reader can refer to this question: <a href="https://stackoverflow.com/questions/4769885/androiddither-true-does-not-dither-whats-wrong/6028652#6028652">android:dither=&quot;true&quot; does not dither, what&#39;s wrong?</a></p> <p>I had color banding too... The solution was to create an alias (in xml) with dither set to "true" for my png images with gradients. <strong>This worked until I specified the SDK version</strong> in my manifest file <code>&lt;uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8" /&gt;</code>...</p> <p>Color banding reappeared on emulator with Android 1.6 (API level 4) and skin WVGA800</p> <p>Does somebody can explain me why !?</p> <p>Project files: <a href="https://rapidshare.com/files/3429393846/Dithering.zip" rel="nofollow noreferrer">https://rapidshare.com/files/3429393846/Dithering.zip</a></p> <p>--</p> <p>My layout and the target to its background (alias with dithering):</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" android:background="@drawable/d_gradient_grey_dither"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>The background (d_gradient_grey_dither.xml):</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/d_gradient_grey" android:antialias="true" android:dither="true"/&gt; </code></pre> <p>The manifest file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.test" android:versionCode="1" android:versionName="1.0"&gt; &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt; &lt;activity android:name=".Main" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; &lt;uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8" /&gt; &lt;/manifest&gt; </code></pre> <p>See the result here:</p> <p><a href="https://docs.google.com/document/d/1XNlR9DvXRvoyFYWVOe9wMARq0E60fkbrBy9ANADvPw4/edit?hl=fr&amp;authkey=COvrv9EG" rel="nofollow noreferrer">https://docs.google.com/document/d/1XNlR9DvXRvoyFYWVOe9wMARq0E60fkbrBy9ANADvPw4/edit?hl=fr&amp;authkey=COvrv9EG</a></p> <p>And the project files if it can help:</p> <p><a href="https://docs.google.com/leaf?id=0B6Y0F7DEUPbPZTM5MDU0YzAtNjJiYi00NTU0LTlmNTAtMWJiZTJhNjBhYjA3&amp;hl=fr" rel="nofollow noreferrer">https://docs.google.com/leaf?id=0B6Y0F7DEUPbPZTM5MDU0YzAtNjJiYi00NTU0LTlmNTAtMWJiZTJhNjBhYjA3&amp;hl=fr</a> </p> <p>or (zipped)</p> <p><a href="https://rapidshare.com/files/3429393846/Dithering.zip" rel="nofollow noreferrer">https://rapidshare.com/files/3429393846/Dithering.zip</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload