Thanks for the insight. I am using surfaceview to render video stream and I 
cannot use anything other than surface view or video view. My application 
requires me to display multiple cameras on a screen within a scroll view. 
When a video is playing and I scroll the window, it makes a big hole on the 
window. But if we stop the feed, it gets back to normal.

Please advise.

Regards
Amit Garg

On Wednesday, July 8, 2009 12:34:29 PM UTC-4, Dianne Hackborn wrote:
>
> Hi, if you are talking about having a larger SurfaceView inside of a 
> ScrollView, it is really not intended to be used that way: you should 
> effectively think of SurfaceView as an overlay you embed inside your 
> window, giving you an area in which you can directly draw independently of 
> the normal view update system.
>
> So once you start using a SurfaceView, you are moving yourself into a 
> world where you have a blank area of pixels, and you are on your own to 
> draw them how you want.  It can be faster, but it also takes more effort.  
> If this is really what you want, you will need to make the SurfaceView the 
> size of the visible area on screen and implement the scrolling yourself 
> inside of the surface view as you render.  Alternatively, just create an 
> off-screen bitmap and have it drawn by a normal ImageView (which can be 
> sized to the entire size of the bitmap and placed in a scroll view).
>
> On Wed, Jul 8, 2009 at 12:37 AM, Lee <[email protected] <javascript:>>wrote:
>
>>
>> I am writing an application that involves rendering into a SurfaceView
>> that is larger than the phone display size. (For example 1024*768
>> pixels).
>>
>> I am currently displaying the image in the SurfaceView both scaled and
>> unscaled. When I am unscaled I would like to implement support for the
>> user to be able to move around the image using touch.
>>
>> There is so much seemingly information in the docs about how to handle
>> scrolling and gestures that I am kind of stuck. I'd like to just have
>> the system handle this for me but I'm not sure whether that's
>> possible.
>>
>> What suggestions do people have in terms of having a SurfaveView
>> scroll around to display the visible part of the underlying bitmap.
>>
>> Regards
>> Lee
>>
>>
>>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> [email protected] <javascript:>
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  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
--- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to