Android Image Fade In-Between Gray-Scale and Color
<p>I have an app that gets the mic level through a method which I can repeatedly call. What I have is an ImageView that I want to fade in-between gray-scale and its normal color. Ultimately I want the image to turn its normal color when speaking (different intensity depending on the mic level).</p>

<p>I also thought that having the gray-scale image behind the colored image and the colored image would change opacity depending on the sound level. I think this is the less elegant way to do it, but it seems like the one that I could manage the best.</p>

<p>This is the code for the idea above.</p>

<pre><code>public static void updateColor() {
    // ImageView color starts with alpha of 0;
    ImageView gray = (ImageView) findViewById(R.id.gray);
    ImageView color = (ImageView) findViewById(R.id.color);

    color.setAlpha(getMaxAmplitute());
    // Part of the problem is that getMaxAmplitude() doesn't exactly return what I want
    // It usually returns something between 30-90
    // (30 being ambient sound level, 90 when talking)
}
</code></pre>

<p>Thanks in advance.</p>
