StfalconImageViewer icon indicating copy to clipboard operation
StfalconImageViewer copied to clipboard

Clicking on the background image will not black out

Open behnamk opened this issue 4 years ago • 1 comments

Clicking on the background image will not turn black and will need to click on the photo again to turn black.

        imageView.setOnClickListener(v->{
            new StfalconImageViewer.Builder(context, addresses,
                    new ImageLoader() {
                public void loadImage(ImageView imageView, Object image) {
                    Glide.with(context)
                            .load(addresses.get(position))
                            .fitCenter()
                            .into(imageView);
                }
            })
                    .withBackgroundColorResource(R.color.black)
                    .withBackgroundColor(Color.parseColor("#000000"))
                    .allowSwipeToDismiss(true)
                    .allowSwipeToDismiss(true)
                    .withHiddenStatusBar(true)
                    .withImageChangeListener(position1 -> {

                    })
                    .show(true) ;
//            FullscreenActivity.addresses=addresses;
//            context.startActivity(new Intent(context,FullscreenActivity.class));
        });

I need to make a black background photo after the first click. Thankful

behnamk avatar Mar 20 '20 15:03 behnamk

Did u get any solution of this? bcz I am facing same issue.

poojashah23996 avatar Apr 30 '20 15:04 poojashah23996