How do I change the View's visibility based on another View's animation in a custom layout?
<p>I created a custom RelativeLayout called WheelLayout which contains two ImageViews. The first View, WheelView, is a custom View that calls RotateAnimation a couple times. </p>

<p>WheelView has a custom interface called WheelListener.</p>

<pre><code> public interface WheelListener {
    public void wheelStarted();
    public void wheelStoppedOnSlice(int sliceNum);
 } 
</code></pre>

<p>In WheelView, I implement Animation.AnimationListener as follows:</p>

<pre><code>@Override
public void onAnimationStart(Animation animation) {
    mListener.wheelStarted();
}

@Override
public void onAnimationEnd(Animation animation) {
        mListener.wheelStoppedOnSlice(mCurrentSlice);
}

@Override
public void onAnimationRepeat(Animation animation) {
}
</code></pre>

<p>Where mListener is a WheelListener.</p>

<p>WheelLayout implements WheelListener like so:</p>

<pre><code>@Override
public void wheelStarted() {
   mSliceImage.setVisibility(View.GONE);
}

@Override
public void wheelStoppedOnSlice(int sliceNum) {
    mSliceImage.setBackgroundResource(mSlices[sliceNum]);
    mSliceImage.setVisibility(View.VISIBLE);
}
</code></pre>

<p>When WheelView animates, I expect to see mSliceImage disappear and WheelView to continue its animation to completion. Instead, neither occurs. My WheelView does not animate and mSliceImage does not disappear.</p>

<p>However, after the animation would finish, I <em>do</em> see mSliceImage change its background resource.</p>

<p>I also tried the same thing where mSliceImage was <em>not</em> a child of custom layout and it worked perfectly.</p>

<p>Does anyone have any ideas?</p>
