GradientDrawable Height Automatically Changes Incorrecty
<p>I am trying to set a gradient programmatically for a RelativeLayout. The problem is that when I open my app, the gradient height cuts and fills only half of the RelativeLayout's height about a second after the app has loaded. The confusing part is that it displays 100% correctly at first, but then changes.</p>

<p>My code:</p>

<pre><code>GradientDrawable gd = new GradientDrawable(
    GradientDrawable.Orientation.LEFT_RIGHT,
    new int[] {0xFF909090, 0xFF101010});
RelativeLayout rl = (RelativeLayout)findViewById(id.rlTitle);
rl.setBackgroundDrawable(gd);
</code></pre>
