I use constraintlayout for container. I have to add images from camera and gallery in to container, so I have to use layout param. When I add imageview and set it to container, I have not access to under imageview. I have to do events move, rotate, zoom. I have to access imageview with touch listener. please help me. thanks.
layoutParams = (ConstraintLayout.LayoutParams) ivCarpet.getLayoutParams();
layoutParams.width = Math.round(ViewUtil.dpToPx(workSpaceWidth));
layoutParams.height = Math.round(ViewUtil.dpToPx(workSpaceHeight));
carpetContent.removeView(ocv);
ivCarpet.setLayoutParams(layoutParams);
imageView.setLayoutParams(layoutParams);
imageView.setMaxWidth((int) sizeImage[0] / 4);
imageView.setMaxHeight((int) sizeImage[1] / 4);
imageView.setScaleType(ImageView.ScaleType.MATRIX);
carpetContent.addView(imageView);