library/src/main/java/com/yalantis/crop/UCropActivity.java
/**
     * Adds view that covers everything below the Toolbar.
     * When it's clickable - user won't be able to click/touch anything below the Toolbar.
     * Need to block user input while loading and cropping an image.
     */
Adds view that covers everything below the Toolbar.
When it's clickable - user won't be able to click/touch anything below the Toolbar.
Need to block user input while loading and cropping an image.
Adds view that covers everything below the Toolbar . When it ' s clickable - user won ' t be able to click / touch anything below the Toolbar . Need to block user input while loading and cropping an image .
private void addBlockingView() {
        if (mBlockingView == null) {
            mBlockingView = new View(this);
            RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
            lp.addRule(RelativeLayout.BELOW, R.id.toolbar);
            mBlockingView.setLayoutParams(lp);
            mBlockingView.setClickable(true);
        }
        ((RelativeLayout) findViewById(R.id.ucrop_photobox)).addView(mBlockingView);
    }
private void addBlockingView ( ) { if ( mBlockingView == null ) { mBlockingView = new View ( this ) ; RelativeLayout . LayoutParams lp = new RelativeLayout . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT ) ; lp . addRule ( RelativeLayout . BELOW , R . id . toolbar ) ; mBlockingView . setLayoutParams ( lp ) ; mBlockingView . setClickable ( true ) ; } ( ( RelativeLayout ) findViewById ( R . id . ucrop_photobox ) ) . addView ( mBlockingView ) ; }
Adds view that covers everything below the Toolbar.
Adds view that covers everything below the Toolbar .