Code example for VideoView

Methods: setLayoutParams

0
        } 
    } 
 
    public void setVideoRegion(int left, int top, int width, int height) {
        if (mVideoView != null && !mConformanceMode) {
            mVideoView.setLayoutParams(new LayoutParams(width, height, left, top));
        } 
    } 
 
    public void setImageVisibility(boolean visible) {
        if (mImageView != null) {
            if (mConformanceMode) {
                mImageView.setVisibility(visible ? View.VISIBLE : View.GONE);
            } else { 
                mImageView.setVisibility(visible ? View.VISIBLE : View.INVISIBLE);
            } 
        } 
    } 
 
    public void setTextVisibility(boolean visible) {
        if (mConformanceMode) {