CC
unread,Nov 23, 2009, 11:54:40 PM11/23/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-porting
Hi All,
I just use a 1024x768 LCD panel to check the video playback. All
Android app and UI work fine in this resolution, except the MovieView
in Gallery.
The movie view only show at position(0,0) with width and height from
video,ie width=320,height=240 for a QVGA video. It is supposed be in
full screen. I have add log in SurfaceView.
in SurfaceView::dispatchDraw(Canvas canvas) shows the canvas.getHeight
() and canvas.getWidth(). the result is
canvas.getHeight() = 768 canvas.getWidth() = 1024.
in SurfaceView::updateWindow(boolean force) print the layout
position. the result is Layout: x=0 y=0 w=1024 h=768, frame=Rect(0, 0
- 1024, 768).
All the log show, it should be in full screen display. If we force
MovieView to rotation to SCREEN_ORIENTATION_PORTRAIT, then the
portrait video view's layout looks fine.
The framework we use is Android 1.6.
Any comments are welcome.