Thanks Mark. I tried other containers like HorizontalScrollView which seem to work fine when used in a ListView. I could not find anywhere in the API documentation that the video view cannot be used inside other scrolling containers hence want to confirm if this is limitation in android or a defect that need to be opened.
The use case is mostly for having a gallery or list of videos (or video calls) with one active video playing at a time and user has a chance to switch between full screen and list view and navigate to the rest of the videos. Thanks, Sandy On Aug 13, 2:20 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Fri, Aug 13, 2010 at 1:49 PM, Sandy <snarr...@gmail.com> wrote: > > Thanks Dianne for quick response. My requirement is to show a video > > as a list item (there is only 1 video item and rest of the items in > > the list are simple views) and the video item should scroll with the > > list. I was able to implement this using videoview inside listview and > > noticed that video plays fine when within a list. However, there were > > rendering artifacts during scrolling. I was wondering if there are any > > other alternate ways to make the video scrolling possible ?? > > I would be somewhat surprised if any sort of widget scrolling > (ScrollView, ListView) and a SurfaceView (e.g., the one used by > VideoView) will get along. > > That being said, there may be a greater chance of a ScrollView > working. Put the VideoView and other stuff in some type of layout > (e.g., LinearLayout) and put the whole thing in the ScrollView. > > Frankly, I fail to see how having a VideoView in a scrolling container > will give the user anything the user would want. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en