The background is not supposed to scroll. You will have to handle this yourself.

On Fri, Jan 16, 2009 at 2:57 PM, Rohit <[email protected]> wrote:
>
> Hi,
>    I have a custom ViewGroup that has chilren views. I set the
> background of that view to a png image by calling setBackgroundResource
> (id). This view is larger than the screen size. On touch events (move)
> I want to scroll the view to show the rest of the view. I got the
> scrolling to work however, the problem is that the children  views
> scroll but the background image doesnt. Is that the expected
> behaviour? Is there a way to get the background resource to scroll as
> well?
>
> Or is it that I need to add an image to the viewgroup (that spans the
> entire view to form the background) and have that as the background
> and scroll that image along with all the children view?
>
> -Rohit
> >
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to