星期二, 1月 22, 2013

Resizing Video SurfaceView on Android


 http://clseto.mysinablog.com/index.php?op=ViewArticle&articleId=2992625

1.     surfaceView.getHolder().setFixedSize(width, height);
        surfaceView.requestLayout();
        surfaceView.invalidate();     // very important, so that onMeasure will be triggered

2.    Layout XML:
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"

沒有留言: