app/src/main/java/fi/finwe/orion360/sdk/pro/examples/sprite/SpriteLayout.java
public void onToggleCropClicked(View view) {
        ToggleButton button = (ToggleButton)view;
        if (button.isChecked()) {
            mSprite.setFlags(OrionSprite.FLAG_SPRITE_ENABLE_CROP);
        } else {
            mSprite.resetFlags(OrionSprite.FLAG_SPRITE_ENABLE_CROP);
        }
    }
// Handle the button that controls the crop feature:
Handle the button that controls the crop feature.
Handle the button that controls the crop feature .
public void onToggleCropClicked(View view) {
        ToggleButton button = (ToggleButton)view;
        if (button.isChecked()) {
            mSprite.setFlags(OrionSprite.FLAG_SPRITE_ENABLE_CROP);
        } else {
            mSprite.resetFlags(OrionSprite.FLAG_SPRITE_ENABLE_CROP);
        }
    }
public void onToggleCropClicked ( View view ) { ToggleButton button = ( ToggleButton ) view ; if ( button . isChecked ( ) ) { mSprite . setFlags ( OrionSprite . FLAG_SPRITE_ENABLE_CROP ) ; } else { mSprite . resetFlags ( OrionSprite . FLAG_SPRITE_ENABLE_CROP ) ; } }
Handle the button that controls the crop feature:
Handle the button that controls the crop feature :