Code example for FrameLayout

Methods: removeView

0
            mCameraStarted = false; 
            mCameraOrientationListener.disable(); 
 
            mIconContainer.setVisibility(View.VISIBLE); 
            mSurfaceView.setVisibility(View.GONE); 
            mSurfaceLayout.removeView(mSurfaceView); 
            mSurfaceView = null; 
        } 
    }; 
 
    private Runnable mAutoFocusRunnable = new Runnable() {
        @Override 
        public void run() { 
            if (mCameraStarted) { 
                mCamera.autoFocus(null); 
            } 
        } 
    }; 
 
    public CameraTile(Context context, QuickSettingsController qsc, Handler handler) {
        super(context, qsc, R.layout.quick_settings_tile_camera);