@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_fullscreen);

        mVisible = true;
        mControlsView = findViewById(R.id.fullscreen_content_controls);
        mContentView = findViewById(R.id.fullscreen_content);


        // Set up the user interaction to manually show or hide the system UI.
        mContentView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                toggle();
            }
        });

        // Upon interacting with UI controls, delay any scheduled hide()
        // operations to prevent the jarring behavior of controls going away
//         while interacting with the UI.
        findViewById(R.id.dummy_button).setOnTouchListener(mDelayHideTouchListener);

        String path = getIntent().getStringExtra("path");

        ImageView mImageView = V.f(this, R.id.image);
        if (path == null) {
            Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.a5);
            mImageView.setImageBitmap(bitmap);
        } else {
            Bitmap bitmap = BitmapFactory.decodeFile(path);
            mImageView.setImageBitmap(bitmap);
        }

    }
Touch listener to use for in-layout UI controls to delay hiding the
system UI. This is to prevent the jarring behavior of controls going away
while interacting with activity UI.
app/src/main/java/home/smart/fly/animations/ui/activity/FullscreenActivity.java