Java Code Examples for android.view.SurfaceHolder.setFormat()

The following are Jave code examples for showing how to use setFormat() of the android.view.SurfaceHolder class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: EVideoRecorder   File:   Source Code and License Vote up 6 votes
protected void initView() {

    mSurfaceview = (SurfaceView) findViewById(;
    mRlTakeVedio = (RelativeLayout) findViewById(;
    mIvCancel = (ImageView) findViewById(;
    mTrpbController = (TimeRoundProgressBar) findViewById(;
    mRlConfrmVedio = (RelativeLayout) findViewById(;
    mIvDelete = (ImageView) findViewById(;
    mIvConfirm = (ImageView) findViewById(;

    mDialog = ERecorderActivityImpl.getCreateVedioDialog(getActivity());

    SurfaceHolder holder = mSurfaceview.getHolder();// 取得holder
    holder.addCallback(this); // holder加入回调接口