I have a foreground image with a transparent space in the middle so you can see the background color, starting as white, through it. I need to create a wipe effect where the color changes from white to blue moving from left to right across the screen. Not just fading from one to the other. It needs to be like a blue curtain being pulled across the screen, slowly changing the color appearing through the middle of the image.
I currently have it set to a basic fade effect using a ValueAnimator, but the requirement is this wipe effect. How can I create this curtain wipe effect?
To clarify the effect I'm looking for is that of a solid colored curtain being slowly pulled across a white screen, so in the end, all there is is the blue color.
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:foreground="@drawable/loading_page_4"
android:id="@+id/splash_color_layout" >
</FrameLayout>