Take a look at Animation
http://developer.android.com/reference/android/view/animation/Animation.html

I would suggest you rework your layout, putting your background image as a
separate element and making it slide using a TranslateAnimation (or stretch
with ScaleAnimation).

On Fri, Jan 8, 2016 at 4:18 PM, Chris Wilson <[email protected]> wrote:

> I am a longtime java developer but I have little experiences creating
> graphics or animations and I don't know where to start here.  This is the
> issue:
>
> I have an image with a transparent hole in the middle.  The starting
> background color of this image is white.  But I need to create an effect
> much like a blue "curtain" being dragged over the previously white
> background.  I'm not looking for a gradient.  I want the blue to move from
> left to right, overtaking the previous white background, so that at the
> beginning, the background color is white, and in the end it is blue.
>
> This is my current layout which is being set to the content view of the
> activity, but I am totally open to changing anything as needs be:
>
> <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>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/e6bed457-879e-4173-aa7b-e318102bdc26%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/e6bed457-879e-4173-aa7b-e318102bdc26%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAH_FNZyQu8ELV5BATwrNdOw%2Beyn43E8ucsRcsWzT%2BzcV302sZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to